Re: iptables -t nat -A OUTPUT - j DNAT

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

 



Le ven 23/05/2003 Ã 16:41, Leszek Åur a Ãcrit :
> Slackware 9.0
> kernel 2.4.20
> iptables 1.2.7a
> iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2
> iptables: Invalid argument

Strange, works fine for me :

cbr@xxxxxxx:~$ sudo iptables --version
iptables v1.2.7a
cbr@xxxxxxx:~$ sudo iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT
	--to-destination 2.2.2.2
cbr@xxxxxxx:~$ sudo iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
 
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
DNAT       all  --  anywhere             1.1.1.1            to:2.2.2.2

Are both kernel and iptables Slackware packages ? Are they built from
sources ? If so, does patch-o-matic have been applied (pending and
submitted) ?

I got problems like this when I was used to build my own kernel and use
an iptables package from distro.

-- 
CÃdric Blancher  <blancher@xxxxxxxxxxxxxxxxxx>
IT systems and networks security - Cartel SÃcuritÃ
Phone : +33 (0)1 44 06 97 87 - Fax: +33 (0)1 44 06 97 99
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