block Voip device from connectng to an odd ip address .

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
student13
DD-WRT User


Joined: 17 Nov 2016
Posts: 91

PostPosted: Sun Jul 04, 2021 19:36    Post subject: block Voip device from connectng to an odd ip address . Reply with quote
Hello everyone , my Voip ATA, for some reason tries to connect to this server , and the people at Grandstream gave no good explanation. Anyhow I want to block it , sis I do it correctly?
Sponsor
student13
DD-WRT User


Joined: 17 Nov 2016
Posts: 91

PostPosted: Sun Jul 04, 2021 19:41    Post subject: Reply with quote
Here's what I did to stop it. Did I block it ?
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Tue Jul 20, 2021 18:39    Post subject: Reply with quote
All but the FORWARD rule apply only relevant to the router itself. IOW, any use of the INPUT and OUTPUT chains of the filter table will only affect the router's ability to communicate w/ that public IP. And since the VOIP adapter is presumably NOT a part of the router, but behind it w/ an internal IP of 192.168.30.145, these rules are ineffective.

What you need is a FORWARD rule.

Code:
iptables -I FORWARD -s 192.168.30.145 -d 34.215.167.138 -j REJECT


Btw, you don't need *both* DROP and REJECT rules. One or the other is sufficient.

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
student13
DD-WRT User


Joined: 17 Nov 2016
Posts: 91

PostPosted: Tue Jul 20, 2021 23:19    Post subject: Reply with quote
Will

iptables -I FORWARD -d 34.215.167.138 -j REJECT


work as well, sometimes I move the VOIP to a different Ethernet port giving a different internal address.


PS Eibgrad, thanks for answering I thought this thread would end up nowhere.
student13
DD-WRT User


Joined: 17 Nov 2016
Posts: 91

PostPosted: Fri Jul 23, 2021 7:10    Post subject: Reply with quote
iptables -I FORWARD -d 34.215.167.138 -j REJECT

Apparently its a good command.
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