Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 need to forward the packet from ppp0, then forward to another server, how to do this, thanks!

share|improve this question
Can you elaborate more please? – Khaled Nov 15 '10 at 7:55
thanks! I need to forward packets from one PPTP server(ip is and interface is ppp0) to another server ( eth1), then I can capture the packet on – larry Nov 15 '10 at 9:21
up vote 2 down vote accepted

iptables -t nat -A PREROUTING -i ppp0 -j DNAT --to-destination x.x.x.x

share|improve this answer
but it gave me an error: Bad argument '' :( – larry Nov 15 '10 at 9:42
-j DNAT --to <ip address to forawrd traffic> – vnix27 Nov 15 '10 at 10:17
Thanks ! you help me very much!!! – larry Nov 16 '10 at 7:06

iptables does not forward packets, the routing engine does (to be configured with ip route).

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.