Let's take a look.Linux iptablesAdd multipleFtpThe specific method of server ing.
The following two steps are involved:
1. First, convert the source addresses of the three ftp servers to those of the gateway.
192.168.0.254 is the gateway 10.0.0.0/24 is the network segment
Iptables-t nat-a postrouting-s 10.0.0.0/24 -- sport 20, 21-j SNAT -- to-source 192.168.0.254
If the gateway is a dynamic IP address
Iptables-t nat-a postrouting-s 10.0.0.0/24 -- sport 20, 21-j MASQUERADE
2. Convert the gateway Source Address to the Internet address
Iptables -- table nat -- append POSTROUTING-s 192.168.0.254-j SNAT -- to *. * (Public IP address published on the Internet)
3. Integration with dns
Iptables-t nat-a postrouting-s 10.0.0.0/24 -- sport 53-j SNAT -- to-source DNS Server IP
Through the article, we can easily see that the Linux iptables process is very simple to map multiple ftp servers in the nat network.
- Linux Iptables kernel added time module
- Linux Firewall Iptables entry notes
- Linux Iptables syntax
- Use iptables for static IP ing
- How to map all the Internet ports of iptables to a host on the Intranet
- Configure the Linux kernel and use iptables for port ing
- Specific iptables port ing operations