Packet forwarding with linux on Vybrid

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Packet forwarding with linux on Vybrid

988件の閲覧回数
cerma
Contributor IV

Hello, Is it possible with Linux enable packet forwarding from one interface to another? Concretely, we would like to connect modem via usb port and then create PPP connection to internet. With this PPP connection we would like to forward packets from eth interface to PPP and vice versa. Is it possible with Linux? Is there iptables? Is it possible to install PPP or is there already?

ラベル(7)
タグ(3)
0 件の賞賛
返信
1 返信

777件の閲覧回数
sanchayanmaity
Contributor III

Hello,

Yes, it is possible to use packet forwarding from one interface to another. It would be something along the lines of

sudo sysctl -w net.ipv4.ip_forward=1

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

You can look for examples on the net or the man pages. I have not verified the above.

The absence or presence of PPP depends on your kernel's configuration. You probably need the below at a minimum in your kernel configuration.

CONFIG_PPP=m

CONFIG_PPP_DEFLATE=m

CONFIG_PPP_MPPE=m

CONFIG_PPTP=m

CONFIG_PPPOL2TP=m

CONFIG_PPP_ASYNC=m

CONFIG_USB_ACM=m

- Sanchayan.