Networking Forums

Networking Forums > Computer Networking > Linux Networking > example of iptables with masq.?

Reply
Thread Tools Display Modes

example of iptables with masq.?

 
 
dan
Guest
Posts: n/a

 
      12-12-2003, 04:43 AM
I have been trying to move from ipchains to iptables but
can't find a simple tables example supporting nat masquarde
(sp?).

Is there one??

Thanks,
Dan

 
Reply With Quote
 
 
 
 
P.T. Breuer
Guest
Posts: n/a

 
      12-12-2003, 05:10 AM
dan <(E-Mail Removed)> wrote:
> I have been trying to move from ipchains to iptables but
> can't find a simple tables example supporting nat masquarde


Look in the NAT HOWTO.

4. Quick Translation From 2.0 and 2.2 Kernels

* 4.1 I just want masquerading! Help!
* 4.2 What about ipmasqadm?

It should come with your iptables code too, documentation directory!

Peter
 
Reply With Quote
 
Andrey Asadchev
Guest
Posts: n/a

 
      12-12-2003, 05:13 AM
dan wrote:
> I have been trying to move from ipchains to iptables but can't find a
> simple tables example supporting nat masquarde (sp?).
>
> Is there one??
>
> Thanks,
> Dan
>


# modprobe ipt_MASQUERADE
# echo "1" > /proc/sys/net/ipv4/ip_forward
# iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

replace $var though.

--
http://goatse.cx - best viewed with lynx

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd Masq/NAT problem under 2.4.22 Mark Olbert Linux Networking 2 01-17-2004 11:15 AM
Simple masq firewall to allow FTP B Boudet Linux Networking 2 11-08-2003 10:45 AM
ip masq problem Snuffy Smith Linux Networking 3 09-16-2003 08:28 PM
IP MASQ won't work Chris Linux Networking 15 09-12-2003 09:10 AM
Another won't work IP MASQ Sitorus Wenny Linux Networking 2 09-06-2003 05:22 PM



1 2 3 4 5 6 7 8 9 10 11