I have been struggling with sorting this issue for a while and cant seem to get it to work.
What I want to achieve:
Here I want all my clients connected to the switch to access the internet through the vpn.
This is the iptables setup i have right now, but I could very well be way off course
#Always accept loopback
iptables -A INPUT i -lo -j ACCEPT
iptables -A INPUT -i eth1 -j ACCEPT
iptables -A INPUT -i nordlynx -j ACCEPT
#############ROUTING#####################
# Allow established connections
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Masquerade.
iptables -t nat -A POSTROUTING -o nordlynx -j MASQUERADE
# fowarding
iptables -A FORWARD -i nordlynx -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
# Allow outgoing connections from the LAN side.
iptables -A FORWARD -i eth0 -o nordlynx -j ACCEPT