LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Bidirectional UDP forwarding over TCP (https://www.linuxquestions.org/questions/linux-networking-3/bidirectional-udp-forwarding-over-tcp-4175474816/)

munkz 08-28-2013 11:00 PM

you could do something like :

YOUR ARCH BOX ::

Code:

iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
iptables -A FORWARD -i tap0 -o eth0 -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o tun0 -j ACCEPT

Then everything at your dorm that is using the arch box for a gateway will then get routed over the vpn. Is that what ya want? As long as you get the arch box vpn client going the above should work.

munkz 08-28-2013 11:38 PM

on your arch box ( I posted this and now its gone ) :

iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
iptables -A FORWARD -i tap0 -o eth0 -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o tun0 -j ACCEPT


Any traffic you have coming in on eth0 would be sent out over the VPN. Make since?

Danice123 08-30-2013 10:42 AM

Thanks a lot man, it's working great now. I've got my connection running though a router so that we can get on the unproxied wifi also. It's sweet.


All times are GMT -5. The time now is 04:11 PM.