LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 07-17-2005, 12:41 AM   #1
databox
LQ Newbie
 
Registered: Jul 2005
Distribution: novel suse linux enterprise server 9
Posts: 18

Rep: Reputation: 0
how to make sles 9 server to be a router/internet gateway?


hi everybody, i'm a newbie here and also to linux. i installed SLES 9 to my server and would like to make it as a router/internet gateway to my workstations. here is the details :

server :
os : novell suse linux enterprise server 9
eth0 ip : 10.0.0.1 subnet : 255.255.255.0 (connected to switch)
eth1 ip : 192.168.0.2 subnet : 255.255.255.0 (connected to adsl router)

adsl router :
ip : 192.168.0.1
subnet : 255.255.255.0
dns : 202.188.0.133, 202.188.1.5

workstations :
os : windows xp & novell linux desktop (dual-boot)
ip : 10.0.0.2 onwards subnet : 255.255.255.0

what should i do/configure and how to do that?

regards;
 
Old 07-17-2005, 03:11 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
You need to firstly install ip-masquerading and then setup a small script to do forwarding at boot up. There should be any number of howto's on this for your distro on the net ( Google search ). Then you need to configure you networks. The gateway for the Linux box is 192.168.0.1 and the gateway for the boxes on the lan will be 10.0.0.1. All the boxes on the lan must be on this subnet (10.0.0.X). Ideally you should install a firewall to protect the network. A very good all in one solution is provided by MonMotha's script . This is what I use on my system.
 
Old 07-17-2005, 08:31 AM   #3
databox
LQ Newbie
 
Registered: Jul 2005
Distribution: novel suse linux enterprise server 9
Posts: 18

Original Poster
Rep: Reputation: 0
setup router on sles 9

i don't know how to do ip-masquerading, neither do scripting. who can help me, please

regards;
 
Old 07-17-2005, 09:03 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
Re: setup router on sles 9

Quote:
Originally posted by databox
i don't know how to do ip-masquerading, neither do scripting. who can help me, please

regards;
Sorry mate, but that's what Google is for. You need to install the ip-masquerading package. If you used Debian I could help. If you can't find what you are looking for with Google then post a request in the Distro specific section under Suse.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SLES 9 as an internet gateway databox Linux - Networking 1 08-21-2005 11:09 PM
sles 9.2 dhcp server not assigning default gateway pat45 Linux - Networking 1 05-07-2005 05:51 AM
Using Linux as an internet router / gateway bashworth Linux - Networking 2 09-10-2004 06:00 PM
Yikes! No one can get Internet thru Linux gateway/router/firewall/DHCP Avatar Linux - Networking 14 02-11-2004 08:50 PM
Linux router / gateway internet restrictions Rancid Linux - Security 8 09-21-2003 06:33 PM


All times are GMT -5. The time now is 01:28 AM.

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
Open Source Consulting | Domain Registration