LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2002, 01:10 PM   #1
The Coz
LQ Newbie
 
Registered: Nov 2002
Posts: 1

Rep: Reputation: 0
Question Ip Masq help needed!


I recently setup my Desktop computer to Run Redhat 8.0, which installed flawless. Inside it i have two network cards. I also have a cable modem installed and a linksys router.

What im trying to do is run the internet connection from the cable modem to one of my network ports on the linux machine, and then from the second network port on the linux machine to the router, then route to the other computers in my home...the problem is that im having trouble setting that up.

Can anyone help??
 
Old 11-15-2002, 04:32 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
The quick answer is...

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -I POSTROUTING -o eth~ -j MASQUERADE

where ~ is your cable modem eth device.
Make sure the router ip number and the Linux box number are in the same subnet, eg
192.168.0.1 & 192.168.0.2 Subnet 255.255.255.252
and the other side of the router is different, eg
192.168.1.~

That's the minimum, no security, no filtering or protection... to let people browse out.

See this masquerade HOWTO &tutorial for some extra guidance.

Last edited by peter_robb; 11-15-2002 at 04:53 PM.
 
Old 11-15-2002, 06:05 PM   #3
g0dzuki99
Member
 
Registered: Jan 2002
Posts: 56

Rep: Reputation: 15
You might want to check Firestarter (http://firestarter.sourceforge.net). It will set up NAT and firewall and has a gui interface.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux masq server to linux masq server VPN rob_roman23 Linux - Networking 0 09-13-2003 09:54 AM
ip masq maxut Linux - Networking 1 06-01-2003 12:30 AM
IP Masq ExEleven Linux - Networking 4 12-14-2002 06:36 AM
masq jakublgz Slackware 3 10-03-2002 07:35 PM
firewall script run at boot -> no masq, rerun manually -> masq worx Griffon26 Linux - Networking 2 06-24-2002 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration