How to open ports on WAN?

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

Moderator: Moderators

Post Reply
bartprokop
Posts: 3
Joined: Tue May 18, 2010 6:31 am

How to open ports on WAN?

Post by bartprokop »

First my great admiration for your heavy work on Gargoyle. I found it much nicer Tomato, which I was using for some time.

I have one question regarding firewall. Could you point me, where I can open certain point on WAN input chain (either GUI or /etc/config file)?

In fact I installed PPTPD and want to open relevant port/protocol on WAN side.

To be more specific, I'm looking for an answer, where is the best to put relevant command in script to be in tact with Eric's ideas how firewall is configured.

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: How to open ports on WAN?

Post by pbix »

Did you try to add your port to Firewall->Port Forwarding in the GUI?

For the destination IP use your WAN address.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

bartprokop
Posts: 3
Joined: Tue May 18, 2010 6:31 am

Re: How to open ports on WAN?

Post by bartprokop »

No, I haven't tried this. Is this right way to use port forwarding for that?

I thought rather about modifying WAN input chain, the problem is where and how to be consisted with Gargoyle design (I mean not to destabilize any functionality)

BTW, please note that I must:
i) open port on WAN interface
ii) allow GRE protocol on WAN interface

bartprokop
Posts: 3
Joined: Tue May 18, 2010 6:31 am

Re: How to open ports on WAN?

Post by bartprokop »

Ok, I fixed it in the following way (hoping not to spoil anything):

Code: Select all

root@OpenWrt:~# cat /etc/firewall.user
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
iptables -I zone_wan -p gre -j ACCEPT
iptables -I zone_wan -p tcp --dport 1723 -j ACCEPT

Post Reply