NAT and firewall scripts

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


Joined: 09 Apr 2013
Posts: 8

PostPosted: Tue Apr 09, 2013 7:38    Post subject: NAT and firewall scripts Reply with quote
I have a netgear 37v2 with DD-WRT v24-sp2 (03/25/13) std
(first question: is this some current version i put on it?)

On its WAN port its connected to a gateway from my isp. I have full access to the gateway (but with a weird interface)
The isps gateway has a dhcp server running and is on 192.168.0.254

The netgears wan intf is 192.168.0.1 and on lan side i use 192.168.1.1 also wirh a dhcp server

Clients connected to the netgear can:
Access the internet
Access smb servers on the gateway lan (but veeeery slow)
Access the gateways browser interface

Clients connected the isp gateway can:
Access the internet
Access other smb servers on the same lan fast
Access the gateways browser interface

I have configured dd wrt in gateway mode, so this is a double nat config and this may be the reason smb access to servers on the wan side is so slow...

BUT:
I have a Wake on lan script from the examples section running which needs the firewall (its watching at /tmp/var/log/messages for incoming connections on port 4321)
This port is forwarded to 192.168.0.1 from my isps gateway and the WOL script is working properly... (I do this because i cant modify the firmware of the gateway)

What are better solutions for this? What can i do to allow all connections through the netgear AND use the firewall script?
This is my first topic here, i hope its not in the wrong place.. Thanks
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Tue Apr 09, 2013 10:05    Post subject: Reply with quote
never ever do cifs/smb over wan. its a crap! use ftp or sftp.
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
gotschi
DD-WRT Novice


Joined: 09 Apr 2013
Posts: 8

PostPosted: Tue Apr 09, 2013 10:17    Post subject: Reply with quote
Then how can i have these 2 routers in the same network and still use the firewall?
gotschi
DD-WRT Novice


Joined: 09 Apr 2013
Posts: 8

PostPosted: Tue Apr 09, 2013 11:46    Post subject: Reply with quote
Nevermind... Got it to work by installing lighttpd/fcgi, now the lighttp server gets the request on port 81 on the router and WOL is run by fastcgi (i then reallocate the browser via js to the original web server)

This way i can have both networks on the same lan and there is no need for NAT and WAN/firewall

Is my earlier question even possible?
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