Iptables with Proxy
Im trying to set up IPTables on a FTP Proxy.
The FTP Proxy port is 2100. So far Ive used the following config. Code:
IPTABLES=/sbin/iptables Code:
modprobe ip_conntrack Anyone any ideas ?? |
It seems to me that the following should be INPUT and not OUTPUT since your output to the true ftp server is controlled by your proxy server.
$IPTABLES -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT |
I think that INPUT line you mention is fine.
The FTP connection into the proxy is working, its the ftp connection out from the proxy that iptables isnt reconising. iptables allows the port 21 connection out but then denies the data channel when it tries to connect to the ftp server. This is what I expected the "modprobe ip_conntrack_ftp ports=2100,21" address. From this it appears it is only doing ftp tracking for 1 port.... |
All times are GMT -5. The time now is 06:46 AM. |