argument error while natting?

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

 



always i try to use the nat issues i get "Invalid argument" ..
why could it be?

root@debian:~# iptables -t nat -A PREROUTING -i eth2 -p tcp --dport 80
-j DNAT --to 127.0.0.1:3128
iptables: Invalid argument
root@debian:~# 
root@debian:~# iptables -t nat -A PREROUTING  -p tcp --dport 80 -j DNAT
--to 127.0.0.1:3128
iptables: Invalid argument
root@debian:~# 
root@debian:~# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables: Invalid argument

root@debian:~# 
root@debian:~# iptables  --version
iptables v1.2.7a
root@debian:~# lsmod 
Module                  Size  Used by    Not tainted
ipt_MASQUERADE          1912   0  (autoclean)
iptable_nat            23064   0  (autoclean) [ipt_MASQUERADE]
ip_conntrack           28832   1  (autoclean) [ipt_MASQUERADE
iptable_nat]
iptable_filter          1672   1  (autoclean)
ip_tables              14360   5  [ipt_MASQUERADE iptable_nat
iptable_filter]
root@debian:~# 




[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