Re: non-standard FTP ports and connection tracking (redux)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 9 Dec 2002, Alexandros Papadopoulos wrote:

> /sbin/iptables -P OUTPUT DROP
>
> #####################
> #### CHAIN INPUT ####
> #####################
>
> ## Accept everything incoming on loopback interface
> /sbin/iptables -A INPUT -s 127.0.0.1 -d 127.0.0.1 -i lo -j ACCEPT
>
> ## Accept all incoming traffic from related or established connections
> /sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
>
> ## Allow connections to our ftp server
> /sbin/iptables -A INPUT -p tcp --dport 2121 -j ACCEPT
>
> ..but still, the packets with the SYN flag set when the client tries to
> establish the new data connection are dropped. Someone please tell me
> what am I missing? I'm sure it's something obvious but I can't seem to
> find it!

What about the rules in the OUTPUT chain?

Regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux