Firewall iptables script blocking RDP

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


Joined: 27 May 2009
Posts: 23

PostPosted: Wed Jun 27, 2012 4:25    Post subject: Firewall iptables script blocking RDP Reply with quote
Hey all -
I have a Linksys WRT160Nv3 running DD-WRT v24-sp2 (08/12/10) mini.
The router is setup to only allow specific MAC addresses through, using this Firewall script, which someone helped me put together:

Quote:
/sbin/insmod xt_mac
iptables -I FORWARD -i br0 -j logdrop
iptables -I FORWARD -i br0 -m mac --mac-source 00:00:00:00:00:00 -j ACCEPT


Each allowed MAC address has a line like the last one.

For some reason, I'm being blocked from connecting from one computer to another, through RDP.
When I temporarily removed the Firewall script, it worked correctly.

Does anyone know what I can add in (or edit) to allow RDP to work to a specific computer? I'd also allow it to work from a remote location, assuming the corect port is forwarded...

Thanks!
Sponsor
Sash
DD-WRT Guru


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

PostPosted: Wed Jun 27, 2012 9:02    Post subject: Reply with quote
i dont get it.

also upgrade 1st

_________________
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!
isaacl
DD-WRT Novice


Joined: 27 May 2009
Posts: 23

PostPosted: Thu Jul 05, 2012 17:21    Post subject: Reply with quote
The recommended version of DD-WRT is 14929, at least according to this thread: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=52043
I basically needed to only allow specific computers to connect to the router/internet, so I set up the firewall script above to allow only those specific MAC addresses to connect.
I can connect to a computer through RDP (when port forwarding is set up) on that network from an external network/location, but when I try to connect to that computer through RDP from another computer within that network, it doesn't go through.
Does anyone have any ideas?
Thanks!
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