Firewall Question

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
csalinardi
Posts: 1
Joined: Wed May 20, 2009 4:36 pm

Firewall Question

Post by csalinardi »

Hello,

Is there a way to allow firewall access to services on the router besides the web interface and SSH? For instance if I install application X on my Linksys and I want to be able to connect to that app remotely, what would I do? If not, can it be implemented?

Thanks,
Chris

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Firewall Question

Post by Eric »

You need to edit the /etc/config/firewall file manually. If you can manually install another program on your router, I assume manually editing a config file shouldn't be a problem.

You need to add a remote_accept rule in the /etc/config/firewall config file. You can open up the ssh report via the GUI and see the structure of it in the /etc/config/firewall file. There are four variables local_port (the port on the router the service is running on), remote_port (the port on the wan to open up to access the service), proto (tcp or udp), and zone (should be wan, to indicate that's where the connection is coming from).

Post Reply