LinuxQuestions.org
Visit Jeremy's Blog.
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 01-16-2005, 10:13 PM   #1
sam_casperson
LQ Newbie
 
Registered: May 2004
Location: Brisbane, Queensland Australia
Posts: 4

Rep: Reputation: 0
Share Internet Connection


Ive setup a redhat enterprise 3 server to be an internet gateway but ive run into some trouble in getting it to be a gateway.

The setup is:

Linux box with 2 nic's - one to the network, the other setup as a PPP connection to the internet.

Windows network that talks to the linux box for internet, email etc...

Now, i can access the internet via the linux box without any worries but it wont allow any communication through to the windows machines.

Is there any internet sharing tools or routes that i need to setup to allow the windows computers to access the world?

Thanks in advance!
 
Old 01-17-2005, 01:58 AM   #2
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 16
you'll need to setup a NAT rule on the PPP interface on your linux box if you want to give your windows machine full outbound connectivity. If you just want HTTP/HTTPS/FTP access though, install a proxy server (like squid for example) on your linux box and add the proxy stuff to the web browser on your windows machine. so you can use it.

not sure what kernel enterprise 3.0 comes with, if it's 2.4.x or above, you can use iptables to write your NAT rules. If it's earlier you can do it with ipfw/ipchains - there are some good tutorials on the web - google is your friend.
 
Old 01-17-2005, 02:07 AM   #3
sam_casperson
LQ Newbie
 
Registered: May 2004
Location: Brisbane, Queensland Australia
Posts: 4

Original Poster
Rep: Reputation: 0
I managed to sus is out. I found some tutes on iptables and got it working. Thanks for the help anyway
 
Old 02-03-2005, 07:07 PM   #4
SubCool
LQ Newbie
 
Registered: Feb 2005
Location: New York
Distribution: Mandrake 10.0 Official
Posts: 5

Rep: Reputation: 0

Hey, i have MDK10.0 Of,
I have kernel 2.6.3.


I am having a similar problem. But with cablemodem. Using eth0 as my internet source.. and eth1 for connection to my local network.
I am using my linux box as a router, or tring to. Kinda hard to route nothing.

Well i am kinda lieing. Seems like i sometimes have internet access. while tinkering i have gotten so that windows can ping web address's, and the rest of the local net. But i cant surf or browse or anything.
I have been to a few IRC chat... and got pretty far.. but still no access. i have installed and uninstall ipkungfu. No matter how hard i try i cant get rid of shorewall.
Lets see what else. Right now im referring off my modem for a DNS- or i should say my ISP. Im not to comfortable with that, but hey.. whatever makes it work.

Thanks..
 
  


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
How do I share my Internet Connection? sagi7ario Linux - Networking 3 03-16-2004 06:17 PM
Help! Cannot share my Internet connection... Domiriel Linux - Networking 2 11-25-2003 02:27 PM
how to share internet connection digihall7 Linux - Networking 5 10-23-2003 12:53 AM
how to share internet connection digihall7 Linux - Networking 2 09-23-2003 04:42 PM
HOW to share Internet connection zaldyd Linux - Newbie 1 07-25-2003 01:42 AM

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

All times are GMT -5. The time now is 07:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration