l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Mar 15 15:25

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Re: Masquerading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Re: Masquerading


it's been a long while since i've done masquerading by hand (how
embarrasing!) but off the top of my head, do this:

on linux:

point your DNS to your ISP's DNS servers (/etc/resolv.conf)

# bring up the interfaces
ifconfig eth0 external-ip up
ifconfig eth1 up
# set up routing
route add default gateway your-ISP-gateway
# set a default policy for the forwarding chain
/sbin/ipchains -P forward DENY
# enable the masquerading
echo "1" > /proc/sys/net/ipv4/ip_forward
# do the masquerading
/sbin/ipchains -A forward -s -j MASQ -i eth0
/sbin/ipchains -A forward -s -j MASQ -i eth0

on windows:
point your DNS at your ISP's DNS servers
use as your gateway.
(i don't use windows, so i don't know how you do this)

i've cc'd vox-tech just in case i screwed up.  i'm sure someone will
correct me in minutes.   :-)

btw, vox-techers, please cc this guy since he's not on the mailing list.

if you use linux, please consider coming to our meetings.
www.lugod.org.  we gladly accept donations to help fund demos,
installfests and our lending library.


begin Martyn R Whittaker <martyn.whittaker@virgin.net> 
> Dear Root,
> I wonder if any of your members would like to do a one or two hours of consulting for me?
> I have set up RedHat Linux 7.2 on my qateway machine at home which contains 2 ethernet cards that seem to be loading up and working fine.  Eth0  is connected to static IP address (ADSL) and Eth1( is connected to my home network of 2 Windows PCS ( and
> I have tried using the Firestarter firewall and also setting up a simple forwarding and masquerading firewall so that I can access the Internet, email etc from my client PCs but without success.  Pinging works fine.
> I suspect someone who knows what they are doing could telnet on to my machine or come round and sort this really quickly.
> I wonder if you could ask your members if anyone would be interested?
> Regards
> Martyn R. Whittaker
> 317 Encina Ave., Davis, CA 95616 USA
> p. +1 530 756 2867  f. +1 253 498 9591  m. +1 916 813 7061
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.