Tomato router and open vpn with firewall

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Andy84
OpenVpn Newbie
Posts: 2
Joined: Fri Oct 14, 2016 1:34 pm

Tomato router and open vpn with firewall

Post by Andy84 » Fri Oct 14, 2016 1:38 pm

Hallo,
i have an router with tomato firmware and use openvpn on it.

Now i have trouble to set up access restrictions and the firewall. Essentially the vpn stream seems to bypass all access / firewall rules.

Might someone kindly point me to a tutorial or manual about how to use an iptables firewall with vpn on the same device?

I would be very grateful.

Andy

Andy84
OpenVpn Newbie
Posts: 2
Joined: Fri Oct 14, 2016 1:34 pm

Re: Tomato router and open vpn with firewall

Post by Andy84 » Sat Oct 15, 2016 1:12 pm

I tried it also directly with iptables just for testing and because it is more easy to explain here what i did i will post this as example instead of the content of the access restriction section:

iptables -A INPUT -s 5.153.231.4 -j DROP
iptables -A OUTPUT -s 5.153.231.4 -j DROP

Result is that i cannot connect to 5.153.231.4.
When i now activate the proxy i can again connect to it.

I would really appreciate a hint in what kind of Documentation i should search / with what this behaviour is related.

Post Reply