Packet forwarding with linux on Vybrid

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Packet forwarding with linux on Vybrid

990 次查看
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 回复

779 次查看
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.