1

I need to forward the packet from ppp0, then forward to another server, how to do this, thanks!

2
  • 2
    Can you elaborate more please?
    – Khaled
    Nov 15, 2010 at 7:55
  • thanks! I need to forward packets from one PPTP server(ip is 172.17.0.10 and interface is ppp0) to another server (10.10.10.10 eth1), then I can capture the packet on 10.10.10.10.
    – larry
    Nov 15, 2010 at 9:21

2 Answers 2

2

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

2
  • but it gave me an error: Bad argument '10.10.10.10' :(
    – larry
    Nov 15, 2010 at 9:42
  • 1
    -j DNAT --to <ip address to forawrd traffic>
    – vnix27
    Nov 15, 2010 at 10:17
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .