allowing all traffic from source address through firewall

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


Joined: 12 Oct 2017
Posts: 4

PostPosted: Thu Oct 12, 2017 20:19    Post subject: allowing all traffic from source address through firewall Reply with quote
Hello. I just installed DD-WRT on my RT-AC1750 and I'm having trouble figuring out how to setup a firewall rule to allow all traffic from certain IP blocks through the firewall.

For example, I want to allow all TCP traffic from 64.61.160.32/27 on ports 16384-65533 through the firewall. How would I go about doing this?

Thanks in advance!
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12915
Location: Netherlands

PostPosted: Fri Oct 13, 2017 15:19    Post subject: Reply with quote
Normally when a client form the outside wants to contact something on your networik you do this by forwarding a port.
What is it you want to accomplish?
Just opening your firewall is bad practice.

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


Joined: 12 Oct 2017
Posts: 4

PostPosted: Fri Oct 13, 2017 18:55    Post subject: Reply with quote
egc wrote:
Normally when a client form the outside wants to contact something on your networik you do this by forwarding a port.
What is it you want to accomplish?
Just opening your firewall is bad practice.


Our hosted VOIP provider is blaming our firewall for dropped/1-way calls. We replaced it with an Asus RT-AC1750 running DD-WRT. They want us to allow all traffic only from their servers (IP blocks were provided to us) through the firewall. There are about 6 phones at this location getting their addresses through DHCP and from what I understand any phone could use any of these ports, so there is no way to implement port forwarding.

I don't see much of a security risk for allowing traffic only from a few IP blocks through our firewall.

I've worked with other firwalls where this is pretty simple, but I'm unfamiliar with DD-WRT.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12915
Location: Netherlands

PostPosted: Sat Oct 14, 2017 16:19    Post subject: Reply with quote
I am not an iptables expert but it is something like
Code:
Iptables –I FORWARD –s 64.61.160.32/27 --sport 513:65535 –j ACCEPT


But I am not 100% sure and it is a real security risk, anybody can spoof this address. If I had a vendor asking me to do this I would have looked for another vendor.

There are definitely other solutions possible.
DDWRT has a SIP proxy this could be what you need, or a public STUN server, but your vendor should come up with a better solution.

see:
https://coertvonk.com/technology/networking/voip-telephony-2369
https://www.dd-wrt.com/wiki/index.php/Siproxd
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=165094&sid=12a12aaf358ab2a85cba8bc2d0429217

I have no expertise in Voip, you maybe should post a question regarding Voip in the Advanced Networing forum

_________________
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
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