0

I have two network interfaces

eth0      Link encap:Ethernet  HWaddr 00:04:35:00:01:21
          inet addr:172.24.176.221  Bcast:172.24.255.255  Mask:255.255.0.0
          inet6 addr: fe80::204:35ff:fe00:121/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20754 errors:0 dropped:2 overruns:0 frame:0
          TX packets:5033 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1462452 (1.3 MiB)  TX bytes:613891 (599.5 KiB)
          Interrupt:27 Base address:0xb000
          RX bytes:3052 (2.9 KiB)  TX bytes:3052 (2.9 KiB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:192.168.10.1  P-t-P:192.168.10.100  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:446 errors:0 dropped:0 overruns:0 frame:0
          TX packets:293 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:33085 (32.3 KiB)  TX bytes:35555 (34.7 KiB)

Need to route UDP traffic on 192.168.10.1 (ppp0) port 9500 to 172.24.176.221 (eth0) port 9500 and visa versa, i.e. route UDP traffic on 172.24.176.221 port 9500 to 192.168.10.1 port 9500.

Some context. ppp0 is a PPP running on a serial line. The command to instantiate it is pppd -detach persist debug local noauth passive xonxoff lock dump 192.168.10.1:192.168.10.100 /dev/ttyS0 9600

I've been reading online on how to do it and it seems I either need to make a virtual network bridge or I need to setup port forwarding.

My question is what exactly I need, port forwarding or a network bridge?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.