The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Help needed with RedHat 7.2 and IP Masquerading by Freakazoid2002-03-05 11:02:42
  Quick Solution by beez 2002-03-05 12:40:54
First off, there should be documentation that came on your RedHat CD. That being said, "man iptables" will give you *tons* of information, which is probably too much to deal with.

That being said, here is what I do:

echo 1 > /proc/sys/net/ipv4/ip_forward
/usr/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

where eth0 is the external interface. I don't have any fancy stuff like port forwarding working, but that should do it (assuming you compiled iptables into the kernel). You may have to insmod the modules, I don't remember their names. Just add the insmods and the above lines to a startup script (I don't remember how to do that in RH) and away you go.

Beez
[ Reply ]
    Two more lines... by seye2006-11-19 12:55:59
      I dont bother by beez2002-03-05 17:25:05
        Port Forwarding by seye2002-03-06 16:22:40

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)