Use a stateful firewall in Linux to implement the FTP function-Linux Enterprise Application-Linux server application information. For more information, see the following. First of all, we need to understand a concept: whether to use FTP to go out from the http proxy, or enable a port forwarding on the socks proxy or firewall. The FTP sent out from the http Proxy actually uses the http Proxy program. For example, the most common squid is the http/https proxy, but it can also proxy ftp requests. When you open a browser and log on to the ftp site, you use an http Proxy program to handle ftp problems. Some programs can only be set to socks or firewall proxy, such as Cuteftp, wu-ftp and FTP under dos. This type of proxy is the standard FTP Proxy.
This article assumes that you have some knowledge about the netfilter technology and describes how to use the netfilter stateful function to implement ftp on the inux2.4 kernel.
System Environment:
Linux7.2, with iptable and squid installed, has two NICs:
Eth0: x. x connected to the internet,
Eth1: 192.168.0.1 is connected to the Intranet.
Firewall Rules: