[squid-users] Native FTP relay: connection closes (?) after 'cannot assign requested address' error

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu Jan 26 20:46:32 UTC 2017


On 26.01.17 08:41, Alexander wrote:
>It seems that I have solved the issue by using nf_conntrack_ftp and
>redirecting "NEW,RELATED" traffic to squid:
>
>ftp_port 2121 intercept
>
>modprobe nf_conntrack_ftp ports=2121
>
>iptables -t nat -A PREROUTING -p tcp --dport 21 -j REDIRECT --to-port 2121
>iptables -t nat -A PREROUTING -p tcp -m state --state NEW,RELATED -j
>REDIRECT

just note that connections may be related to different connections than
FTP...

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
BSE = Mad Cow Desease ... BSA = Mad Software Producents Desease


More information about the squid-users mailing list