csaab
1
Hello everyone,
I would like to share the 3G connection of the module (rmnet0 interface) over usb0 or eth0 interface.
My first idea was to setup a bridge but rmnet0 interface cannot be added to the bridge.
Any idea how to do this?
Thank you very much for your support
CS,
Jay
2
Hi,
You can try this:
iptables -t nat -A POSTROUTING -o rmnet0 -j MASQUERADE
iptables -A FORWARD -i rmnet0 -o usb0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i usb0 -o rmnet0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
Jay