Another way of getting your daemon to respond to requests from a lower port number is to use iptables or similar to redirect a lower numbered port to the higher numbered port that your daemon is listening on:
sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 8080
Substitute 80 with the port to expose, and 8080 with your application listener port.
Related Contents:
- How to kill a process running on particular port in Linux?
- Forward host port to docker container
- Can I map a hostname *and* a port with /etc/hosts? [closed]
- Efficiently test if a port is open on Linux?
- Freeing up a TCP/IP port? [closed]
- What is the meaning of SO_REUSEADDR (setsockopt option) – Linux? [duplicate]
- Check if port is open or closed on a Linux server?
- What is the maximum port number?
- Run antivirus software on linux DNS servers. Does it make sense?
- How do I get rid of sockets in FIN_WAIT1 state?
- (network unreachable) error in my server logs
- My DNS server is pushing 20mbps, why?
- On Linux, how can I tell how many ephemeral ports are left available?
- How to find the number of open ports in linux?
- Cannot access port 80 from remote location but works on local?
- How to setup a simple DNS server to answer just for one name and forward all the rest?
- Preventing other applications from binding to port 80 and 443
- Determine process using a port, without sudo
- Failed to connect to 127.0.0.1 port 80
- Listing all zones loaded in BIND
- What is the best way to measure latency via a “telnet to port” test, preferably with built-in Linux tools?
- Linux networking port exhaustion
- Why running named(bind) in chroot is so important for security? Or maybe it is not?
- bind9 proper recursion setup
- Amplified reflected attack on DNS servers
- How can I open some ports on Ubuntu?
- How to open port in Linux [closed]
- Listen on a network port and save data to a text file [closed]
- How to create a file in Linux from terminal window? [closed]
- Lost httpd.conf file located apache [closed]
- How can I find all of the distinct file extensions in a folder hierarchy?
- How to get overall CPU usage (e.g. 57%) on Linux [closed]
- How do I change bash history completion to complete what’s already on the line?
- Understanding the Linux oom-killer’s logs
- Using Rsync include and exclude options to include directory and file by pattern
- How do I know if my Linux server has been hacked?
- Assign multiple IPs to 1 Entry in hosts file
- How to simulate DNS server response timeout?
- Will my system fsck when I reboot?
- Why (or how) does the number of open file descriptors in use by root exceed ulimit -n?
- How to cp file and create directory if not exists?
- Method to integrate Powershell scripts with non-Windows workflow?
- ARP replies contain wrong MAC address
- Nginx defaults to /usr/share/nginx/html
- what is the point of stripping a binary/elf program?
- How to get the percentage of memory free with a Linux command? [closed]
- How to join multiple lines of filenames into one with custom delimiter
- Why using conv=notrunc when cloning a disk with dd?
- What is the *nix command to view a user’s default login shell
- svn over HTTP proxy [closed]