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 beez2002-03-05 12:40:54
    Two more lines... by seye2006-11-19 12:55:59
      I dont bother by beez2002-03-05 17:25:05
        Port Forwarding by seye 2002-03-06 16:22:40

You still having problems? I've got a very simple config (still working on complex config) that forwards port 80 to an internal machine and would likely work with any mainstream service you need to see from the outside. First line of *nat PREROUTING

iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.1.10:80

and the kicker (b/c I am dropping Invalid & New connecitons)

iptables -A FORWARD -d 192.168.1.10 -i eth1 -p tcp -m tcp --dport 80 -j ACCEPT

Outbound traffic from 192.168.1.10 is NAT'd.

You might be working with a more complex setup but I thought I'd throw it out there.

[ Reply ]

 

[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.)