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 seye 2006-11-19 12:55:59
... to keep the bad guys out until you cruise up the learning curve:
** eth0 - facing your network
** eth1 - facing the Internet

iptables -A INPUT -i eth1 -m state --state INVALID,NEW -j DROP
iptables -A FORWARD -i eth1 -m state --state INVALID,NEW -j DROP
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
Also, if you're having trouble with an FTP client,
modprobe ip_nat_ftp
modprobe ip_conntrack_ftp
Linux Guruz is a good place to get fw scripts but more importantly, an excellent place to learn by example.

Now go mangle some packets :)
[ Reply ]
      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.)