Linux Training Community :: Ubuntu
Welcome Guest   [Register]  [Login]
 Subject :setting up router in ubuntu.. 2010-04-17 14:49:38 
terbor
Joined: 2010-04-17 14:38:41
Posts: 2
Location
I am trying to use ubuntu server 9.10 to be the router behind the comcast router. The issue is that the servers behind the ubuntu router cant get to the internet. They can ping the ubuntu router. Is there something I have to do to tie in the 2 nics on the router? Here is the routers interfaces file
Code:
root@router:~# cat /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 173.162.xxx.xxx netmask 255.255.255.0 gateway 173.162.xxx.xxx auto eth1 iface eth1 inet static address 192.168.0.1 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255
IP Logged
 Subject :Re:setting up router in ubuntu.. 2010-04-17 15:56:36 
terbor
Joined: 2010-04-17 14:38:41
Posts: 2
Location
Ok I figure this part out now I need to be able to pass my static IPs from my comcast router through ubuntu router. If anyone has any suggestions that would be great, here is what I did to fix the first issue.

http://ubuntuforums.org/showthread.php?t=827425

There were two things missing on the ubuntu server, one was to enable the pass through from nic 1 to nic 2 and the other was something with IP MASQUE

This is what I did from the above article.
Quote:
1) IP forwarding has to be enabled on the server. You can check this with 'sysctl net.ipv4.ip_forward' (you don't need root access for this). If it returns zero, you need to enable forwarding with 'sudo sysctl -w net.ipv4.ip_forward=1', then uncomment the similar line in /etc/sysctl.conf so forwarding is enabled at boot.
2) iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
IP Logged
Page # 


Powered by ccBoard