Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i've a ubuntu server (13.04) with 3 NICs. This is my routing table:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         vodafone.statio         UG    0      0        0 p1p1     *        U     0      0        0 p2p2    *        U     0      0        0 p2p1

The server is on the interet and sees the 2 subnets. My PC is on subnet 17.xxx, i can ping all PCs on the subnet 8.xxx but i can't go on the internet.

How can i configure the routing table to redirect my request on the web?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If you can ping from one subnet to another, there's no problem in your routing table. Probably packets from local networks are being sent to Internet unmodified. The problem is that private network addresses are not routable through Internet.

Private network addresses must be NAT'ed before sent to Internet. Try running:

sudo iptables -t nat -A POSTROUTING -o p1p1 -j MASQUERADE
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.