RE: Re[2]: Problems with DNS

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

 



I edit the /etc/sysconfig/iptables and iptables give my error.
Now I add rules from console and they applying ok.
Thank you.


-----Original Message-----
From: Cedric Blancher [mailto:blancher@xxxxxxxxxxxxxxxxxx]
Sent: Monday, September 08, 2003 5:45 PM
To: Vladimir Potapov
Cc: netfilter@xxxxxxxxxxxxxxxxxxx
Subject: Re: Re[2]: Problems with DNS


Le lun 08/09/2003 à 14:51, =?koi8-r?Q?=22?=Vladimir
Potapov=?koi8-r?Q?=22=20?= a écrit :
> I cannot add this rules with --syn, because iptables tell me error :
> bad argument '--syn'.

Strange...

root@elendil:~# iptables --version
iptables v1.2.8
root@elendil:~# iptables -A FORWARD -d 192.168.5.2/255.255.255.255 -i
eth0 -o eth1 -m state --state NEW -p tcp -m tcp --dport 53 --syn -j
ACCEPT
root@elendil:~# iptables -L FORWARD
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             192.168.5.2        state NEW
tcp dpt:domain flags:SYN,RST,ACK/SYN

Are you sure you specify TCP protocol with --syn, for --syn is only
valid for TCP. If you specify another protocol, or no protocol at all,
you'll get an error :

root@elendil:~# iptables -A FORWARD -d 192.168.5.2/255.255.255.255 -i
eth0 -o eth1 -m state --state NEW --syn -j ACCEPT
iptables v1.2.8: Unknown arg `--syn'
Try `iptables -h' or 'iptables --help' for more information.

> If write this rules without --syn argument , the iptables rules
> applying success.If I write rules with chain NEW but without --syn
> argument , are the my packet filter will be accept(or forward) new
> packet without --syn ?

If you don't specify --syn, both SYN and non SYN packets with state NEW
will be accepted.

--
http://www.netexit.com/~sid/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE



[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