Displaying 1 result from an estimated 1 matches for "my_ftp_server".
2004 Apr 12
2
RE: installing automatic routes ?
...volved, or if you just want to kludge the current solution, you can
perform a DNAT/SNAT interface bounce like the following:
# Session
iptables -A PREROUTING --destination ${FAKE_FTP_IP} -p tcp --dport 21 -j
MARK 1234
iptables -A PREROUTING --destination ${FAKE_FTP_IP} -p tcp --dport 21 -j
DNAT ${MY_FTP_SERVER}
iptables -A POSTROUTING -m mark 1234 -j SNAT --to ${MY_INTERNAL_IP}
The above should work for single channel TCP/IP traffic, but I don''t
know if more is needed for multi-session FTP. The RELATED streams may be
handled automatically in the NAT code, or you may have to explicitly
place rul...