So I’m in a bit of a pickle. I wanted to setup my router to send connections through a VPN and I was successful, however, in doing so, I’ve now killed any access into my network.
So I need to be able to open up a few ports, such as SSH, Plex (32400), etc. I probably have a dozen ports that I need to open up.
I found this topic, but I’m not sure if this is what I need to do or not.
My router is using DD-WRT.
I also assume, I simply really need to focus on
iptables -t mangle -A PREROUTING -i br0 -m iprange --src-range 192.168.x.x -j MARK --set-mark 0
iptables -t mangle -A PREROUTING -i br0 -p tcp -m multiport --sport 80,443 -m iprange --src-range 192.168.x.x -j MARK --set-mark 1
Replacing the 80,443 with my list of ports and the 192.168.x.x with the server receiving the requests.
Am I on the right approach?