Troubles with NAT/MASQUERADE

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

 



I'm trying to upgrade from an ipchains (working!) firewall+nat
setup to one using iptables.  However, I get stuck when I
try to enable masquerading.

[root@hermes userspace]# ./iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables: Invalid argument

I think the modules I need are loaded:
[root@hermes linux-2.4.20]# lsmod
Module                  Size  Used by    Not tainted
ipt_MASQUERADE          2200   0  (autoclean)
ipt_mark                 984   0  (autoclean)
iptable_mangle          2776   1  (autoclean)
iptable_nat            22008   1  (autoclean) [ipt_MASQUERADE]
ipt_state               1080  92  (autoclean)
ipt_REJECT              4024   4  (autoclean)
ipt_limit               1560   6  (autoclean)
ipt_LOG                 4184   6  (autoclean)
ip_conntrack_ftp        5520   0  (unused)
ip_conntrack_irc        4368   0  (unused)
ip_conntrack           28296   4  [ipt_MASQUERADE iptable_nat ipt_state ip_conntrack_ftp ip_conntrack_irc]
iptable_filter          2412   1  (autoclean)
ip_tables              15096  11  [ipt_MASQUERADE ipt_mark iptable_mangle iptable_nat ipt_state ipt_REJECT ipt_limit ipt_LOG iptable_filter]
  <snip>

Any ideas?

-- 
Gary Thomas <gary@xxxxxxxxxxxxxxx>



[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