LinuxQuestions.org
Register a domain and help support LQ
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 09-20-2009, 11:42 AM   #1
redss
Member
 
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, 12:07 PM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,219

Rep: Reputation: 131Reputation: 131
refer this following link
http://www.yolinux.com/TUTORIALS/Lin...rkGateway.html
 
  


Reply


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


All times are GMT -5. The time now is 10:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration