Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-20-2009, 12:42 PM   #1
Registered: Jun 2003
Posts: 165

Rep: Reputation: 16
How to make linux the gateway computer?

I have a 4 port router with a Linux box and windows box.

I want all the windows traffic to go through the linux box so I set the windows box to a static IP with the IP of the linux box as its gateway, and I set IP forwarding on the linux box
(echo 1 > /proc/sys/net/ipv4/ip_forward)

When I attempt to visit a url on the windows box, I see (using ethereal) that the traffic goes to the linux box, but doesn't go out. (In ethereal, I do see ICMP messages from linux to windows saying destination unreachable)

Do I need to set an iptables rule to make this work?
Old 09-20-2009, 01:07 PM   #2
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,249

Rep: Reputation: 144Reputation: 144
refer this following link


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Make Linux as your default gateway Hakencreuz Linux - Networking 5 11-18-2006 12:19 PM
$99 Fry's computer, can I make it run linux applications? sealmouth Linspire/Freespire 2 10-10-2004 10:13 PM
Linux gateway computer can't resolve names krsnendu Linux - Networking 4 12-17-2003 10:30 AM
Want to have a computer be gateway w\xp clients chingasman Linux - Networking 4 10-06-2003 03:28 AM
How can I make a custom CD Linux to use in a computer lab? kierl Linux - General 7 09-25-2003 03:10 PM

All times are GMT -5. The time now is 10:03 AM.

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