[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NAT problem, !



sorry, didn't get to quote your message -- some odd format.
(in mutt i could read it by going into another level of 'viewer'
but it wasn't a quotable option.)

On Sun, May 13, 2001 at 10:08:44AM +1000, Steve Kieu wrote:
> =====
> S.KIEU

for NAT or masquerading, first set up your firewall box
as your masq box via /etc/network/interfaces, then install
ipmasq and you're reasonably done.

	# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

	# The loopback interface
	iface lo inet loopback

	iface eth0 inet static
		address 192.168.1.1
		netmask 255.255.0.0
		network 192.168.1.0
		broadcast 192.168.1.255

	iface eth1 inet static
		address public.ip.address.here
		netmask 255.255.255.0
		network public.ip.address.0
		broadcast public.ip.address.255
		gateway gateway.to.isp.here

then

	apt-get install ipmasq

or if you have it already then

	update-rc.d ipmasq defaults

or to just reset it by hand,

	/etc/init.d/ipmasq restart

ipmasq also works, if you're really lazy.

try "iptraf" to see if there's any network traffic that doesn't
make sense. (apt-get install iptraf)

-- 
DEBIAN NEWBIE TIP #10 from Will Trillich <will@serensoft.com> 
:
Looking to run a command or two at REGULAR INTERVALS?  Try
"crontab -e" for starters (see "man cron" or "man crontab").
You might also investigate the "anacron" package.

Also see http://newbieDoc.sourceForge.net/ ...



Reply to: