Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, i can ping all PCs on the subnet 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
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.