Help to configure Iptables rules

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
carawain
DD-WRT Novice


Joined: 26 Jul 2019
Posts: 5

PostPosted: Fri Jul 26, 2019 17:46    Post subject: Help to configure Iptables rules Reply with quote
Hello,

Good Evening.

I need some help to configure iptables rules due to misunderstandings when I read some wiki or tutorial.

I have flashed my Netgear R7000 router with an ExpressVPN firmware.
This firmware is very flange and I'm not able to use the expressvpn web interface to configure port forwarding, there're no feature for that.
The only way is to use iptables rules connecting to the router by SSH.

I tried many rules to forward FTP ports 21 & 20 to my NAS but without success.

My router has a WAN ip on interface ppp0
and my NAS has a private ip like 192.168.1.10 (192.168.1.0/24)

What are the rules I need to configure to get the connection success from the outside?

The LAN IP address of the NAS which I use is not routed to the VPN tunnel.

Thanks in advance for your help. Embarassed
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Fri Jul 26, 2019 20:51    Post subject: Reply with quote
What version of DDWRT are you using?
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
carawain
DD-WRT Novice


Joined: 26 Jul 2019
Posts: 5

PostPosted: Fri Jul 26, 2019 21:09    Post subject: Reply with quote
==========================================================

___ ___ _ _____ ______ ____ ___
/ _ \/ _ \___| | /| / / _ \/_ __/ _ __|_ / / _ \
/ // / // /___/ |/ |/ / , _/ / / | |/ //_ <_/ // /
/____/____/ |__/|__/_/|_| /_/ |___/____(_)___/

DD-WRT v3.0
http://www.dd-wrt.com

==========================================================


BusyBox v1.30.1 (2019-04-25 03:15:07 UTC) built-in shell (ash)
carawain
DD-WRT Novice


Joined: 26 Jul 2019
Posts: 5

PostPosted: Sat Jul 27, 2019 4:13    Post subject: Reply with quote
Hello,

I finaly found the issue.
My iptables rules are working on the R7000 router
The issue was on my VDSL Netgear modem in bridge mode which is not really "Open" some incoming packet are filtered with no option to configure it as open.
The only way is to switch from bridge mode to "modem-router"
And in WAN configuration select the nat option as "Open" and not the "Secured" one.

VDSL Modem is a Netgear DM200

Thanks for your previous reply
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum