LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Yet another Gateway setup question ;p (http://www.linuxquestions.org/questions/linux-networking-3/yet-another-gateway-setup-question-%3Bp-446084/)

Last Attacker 05-18-2006 11:25 AM

Yet another Gateway setup question ;p
 
Hello everyone!
You are all provably like : Man, not another guy asking this!
Well my question differs slightly.

I have an iBurst connection that has dynamic ip allocation on connection. Thanks to coaic, I can use iBurst in SuSE 10.0 but now I'm having a pain setting up my gateway. I was at 10 different sites and they just couldn't help me for weeks now (I didn't work so much on it every week because I had/have like 3 other projects to finish for next week). Really I have tried my best!
Even the textbook for my one cource in Linux "Red Hat Linux Networking and System Administration" had a paragraph or 2 about this subject but didn't help aswell.

Here is my situation:

My /etc/sysconfig/network/ifcfg-eth-id-00:d0:b7:85:42:71 file has the following info (eth0):
Code:

BOOTPROTO='static'
BROADCAST=''
IPADDR='192.168.0.3'
MTU=''
NAME='Intel EtherExpress PRO/100+ Management Adapter'
NETMASK='255.255.255.0'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='rBUF.HVgIlgOrmpC'
USERCONTROL='no'
_nm_name='bus-pci-0000:01:09.0'
PREFIXLEN=''

It was generated by YAST.

Now my eth1 interface has this (
/etc/sysconfig/network/ifcfg-eth1):
Code:

STARTMODE='hotplug'
BOOTPROTO=''
IPADDR=''
NETMASK=''
PREFIXLEN=''
REMOTE_IPADDR=''
MTU='1492'
NAME='iBurst User Terminal'
USERCONTROL='yes'
NETWORK=''

It had info but I guess when I created the dsl0 interface it got moved.

(/etc/sysconfig/network/ifcfg-dsl0):

Code:

BOOTPROTO='none'
DEVICE='eth1'
MODEM_IP='10.0.0.138'
NAME='DSL Connection'
PPPD_OPTIONS=''
PPPMODE='pppoe'
PROVIDER='provider0'
STARTMODE='manual'
UNIQUE=''
USERCONTROL='yes'
VPIVCI=''

My gateway is : 196.2.120.1

I need to set up the routing on my server aswell as IP masquerading.
Any help will greatly be appreciated!
O I have herd of firestarter for easy shared internet connections but this is for a project at university. Its almost done, I just have to get this routing thing working.

Thanks

cwwilson721 05-19-2006 09:22 PM

Quote:

Originally Posted by Last Attacker
My /etc/sysconfig/network/ifcfg-eth-id-00:d0:b7:85:42:71 file has the following info (eth0):
Code:

BOOTPROTO='static'
BROADCAST=''
IPADDR='192.168.0.3'
MTU=''
NAME='Intel EtherExpress PRO/100+ Management Adapter'
NETMASK='255.255.255.0'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='rBUF.HVgIlgOrmpC'
USERCONTROL='no'
_nm_name='bus-pci-0000:01:09.0'
PREFIXLEN=''


And
Quote:

My gateway is : 196.2.120.1
Different networks. Will not work with a subnet mask of 255.255.255.0, ip 192.168.0.xxx and gateway of 192.2.120.xxx. The subnet masks means that the only things you can see with that IP address is other IP's in the 192.168.0.xxx range.
You need to setup your IP to a subnet of your Gateway, i.e 192.2.120.xxx. Then they can talk to one another.

Sometimes, it's easy to over think things. I've done the same thing myself a few (read: many) times

Last Attacker 05-20-2006 04:10 AM

Hmm...
But my eth0 is my local network interface and eth1 & dsl0 is my connection to the internet. Thanks but why can you have a local connection of 192.168.0.xxx and an internet connection of 196.2.xxx.xxx that works in Windows?
Thats the kind of thing that I'm trying to accomplish.

EDIT: Also my dsl0 ip changes the whole time and my eth1 doesn't even have an ip address.
Also what would be a simple way for ip masquerading... anyone?

Last Attacker 05-20-2006 11:32 AM

Thanks to nic777, I have managed to get my home gateway working.
All I had to do was setup my firewall correctly and thats it. No routing, no nothing.
Check this site out : My thread @ mybroadband.co.za


All times are GMT -5. The time now is 09:48 PM.