Re: IP Masquerade Tutorial for Ubuntu ??



Soo-Hyun Choi wrote:
Hi,

I am trying to set up my private network using Ubuntu Feisty as a
gateway. I
searched "IP Masquerade Tutorial" over the web and found tons of those.
However, it seems that none of them are straightforward to set it up.

Is there any good (or simple) IP Masquerading tutorial for a Ubuntu
machine?
(Well, of course, once I confirm if it is working, then I should go over a
strong firewall rule.)

Many thanks,
Soo-Hyun


Assuming that eth0 is your interent network, and has an IP address like
192.168.0.1 and eth1 is your internet connection

sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
sudo echo "1" > /proc/sys/net/ipv4/ip_forward

should do the trick. You can put those in your /etc/rc.local without
the sudo's.

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • IP Masquerade Tutorial for Ubuntu ??
    ... I am trying to set up my private network using Ubuntu Feisty as a gateway. ... searched "IP Masquerade Tutorial" over the web and found tons of those. ... Is there any good IP Masquerading tutorial for a Ubuntu machine? ...
    (Ubuntu)
  • Re: getting Ubuntu to work with comp
    ... date version of Ubuntu Feisty. ... it reads the fallowing: ... failed to start the x server (your graphical ...
    (Ubuntu)
  • Re: IP Masquerade Tutorial for Ubuntu ??
    ... Rashkae wrote: ... I am trying to set up my private network using Ubuntu Feisty as a ... gateway. ...
    (Ubuntu)
  • Re: Can Ubuntu handle winmodems?
    ... Before I invest any time with Ubuntu, I need it to work with my hardware. ... Winmodem pilots have to be fit to the kernel. ... (with ipmasq on the gateway, I even ran it several days in a row with Knoppix running the gateway... ...
    (Ubuntu)
  • Re: Disable alt + mouse click in Gnome?
    ... can you tell me how is the performance of photoshop 7 in terms of speed ... I am running Photoshop 7 under Wine in Ubuntu Feisty. ... alt+still moves the application window. ...
    (Ubuntu)