LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Server router modem internet connection (https://www.linuxquestions.org/questions/linux-newbie-8/server-router-modem-internet-connection-439489/)

destiny200 04-27-2006 06:13 PM

Server router modem internet connection
 
Looking for help in setting up my server as a router to provide internet connection to two other networked computors.
Am running SUSE 10.0 KDE desktop

Present setup
server = dhcp, and nfs one nic card and one internal modem. Nic internal and modem external to firewall.
Main and Laptop are both set up as dhcp clients with default gateway set to 10.8.8.6 and firewall off.

server:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.8.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
server:~ #

modem not connected
server:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:9B:40:6C
inet addr:10.8.8.6 Bcast:10.8.8.255 Mask:255.255.255.0
inet6 addr: fe80::204:75ff:fe9b:406c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:371 errors:0 dropped:0 overruns:0 frame:0
TX packets:243 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34457 (33.6 Kb) TX bytes:30881 (30.1 Kb)
Interrupt:11 Base address:0xc400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:192 errors:0 dropped:0 overruns:0 frame:0
TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15695 (15.3 Kb) TX bytes:15695 (15.3 Kb)

modem connected
server:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:9B:40:6C
inet addr:10.8.8.6 Bcast:10.8.8.255 Mask:255.255.255.0
inet6 addr: fe80::204:75ff:fe9b:406c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:374 errors:0 dropped:0 overruns:0 frame:0
TX packets:260 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34874 (34.0 Kb) TX bytes:32792 (32.0 Kb)
Interrupt:11 Base address:0xc400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:192 errors:0 dropped:0 overruns:0 frame:0
TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15695 (15.3 Kb) TX bytes:15695 (15.3 Kb)

modem0 Link encap:Point-to-Point Protocol
inet addr:208.160.33.123 P-t-P:216.17.87.116 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:66 (66.0 b) TX bytes:87 (87.0 b)

I have tried for a while to get this running with not much luck.
Thanks
Steven

pljvaldez 04-27-2006 06:19 PM

Have you tried using guidedog to help you set up the NAT rules? The basics of it are you want to route packets from eth0 to ppp0 (or whatever it says the connection is named).

destiny200 05-01-2006 11:47 PM

Found the problem. In the firewall the FW_MASQ_DEV has to be set to modem0, the default setting of $FW_DEV_EXT does not work for the modem even though it is external to the firewall.
Steven


All times are GMT -5. The time now is 09:40 AM.