Re: IP Masquerade Tutorial for Ubuntu ??
- From: Rashkae <ubuntu@xxxxxxxxxxxxxxx>
- Date: Thu, 17 May 2007 20:53:32 -0400
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
- Follow-Ups:
- Re: IP Masquerade Tutorial for Ubuntu ??
- From: Peter Garrett
- "Blank screen" screensaver, goes to white instead of black
- From: Randy Forston
- Re: IP Masquerade Tutorial for Ubuntu ??
- References:
- IP Masquerade Tutorial for Ubuntu ??
- From: Soo-Hyun Choi
- IP Masquerade Tutorial for Ubuntu ??
- Prev by Date: $PATH used to be set in .bash_profile
- Next by Date: dlm: Can't create listening comms socket
- Previous by thread: IP Masquerade Tutorial for Ubuntu ??
- Next by thread: "Blank screen" screensaver, goes to white instead of black
- Index(es):
Relevant Pages
|