Ubuntu Server with 2 NICs, help with routing

Crispin Wellington crispinw at signiq.com
Tue Mar 25 06:55:57 UTC 2014


The traceroute shows your packets are getting to the 10.* network. What is
probably happening is the NAT on your ADSL router is only set up to NAT
10.* address space. It needs to NAT incoming 10.* and 192.168.* traffic.
You either need to set the NAT there to do that (the best solution), or NAT
the 192.168 addresses at the 10.* border (so your packets are NATed twice.
Once to 10.*... once to the live IP. This is not the best way to do it.)

Crispin


On Sun, Mar 23, 2014 at 6:58 AM, Roland Hill <roland.lists at hillnet.co.nz>wrote:

> Hi list,
>
> I'm running Ubuntu Server 13.10 on a Gigabyte Brix as a small home server.
>
> It has onboard ethernet (p3p1, ubuntu's naming) and a USB ethernet adapter
> (eth0).
>
> The aim is to have the server "sit" between my ADSL modem/router and my
> network and run squid3 as a transparent caching proxy. The server already
> runs dnsmasq for DNS and DHCP services.
>
> I'll now do my best to simply describe the network:
>
> ASDL router: WAN side, IP etc assigned by ISP (PPoA)
>              LAN side, IP 10.0.0.1/255.255.0.0, no DCHP, DNS or wireless
>
> (router is an all-in-one device, via Vodafone New Zealand)
>
> Server: eth0, IP 10.0.0.2/255.255.0.0
>         p3p1, IP 192.168.0.1/255.255.255.0
>
> Clients: DHCP in range of 192.168.0.11 to 150, 255.255.255.0, assigned by
> dnsmasq from the server. No hosts connect to the 10.* network.
>
> Other information:
> - IPv4 forwarding is on (via /etc/sysctl.conf etc)
> - Static route in the ADSL router is set, dest: 192.168.0.0/24, gw
>   10.0.0.2, iface LAN/br0
> - No iptable rules, apart from standard, have been configured.
>
> Problem:
> 192.168.* clients cannot connect to the internet. Here is a cut from
> traceroute -
>
> roland at rh-mob:~$ traceroute 203.109.178.102
> traceroute to 203.109.178.102 (203.109.178.102), 30 hops max, 60 byte
> packets
>  1  hillnet.localnet (192.168.0.10)  3.140 ms  3.542 ms  3.630 ms
>  2  10.0.0.1 (10.0.0.1)  4.082 ms  4.681 ms  5.111 ms
>  3  * * *
>  4  * * *
>
> ..where rh-mob is a 192.168.* client.
>
> I've googled, reached out to my local LUG and spoken with collegues, but
> can seem to move forward. Any suggestions would be most appreciated.
>
> The result is the same even if I use another ADSL modem/router (trying to
> rule out if there were any issues with my Vodafone device).
>
> Networking is not my "sweet spot"...
>
> Let me know if I've missed any important relevant information.
>
> Thanks.
>
> --
> Regards,
>
> Roland
>
> PGP Key 0xDA39319B = BCF0 1214 BAE9 5A3D 46FC 21A6 360D 9398 DA39 319B
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20140325/57a099b4/attachment.html>


More information about the ubuntu-users mailing list