IPTables Rules

Post new topic   Reply to topic    DD-WRT Forum Index -> Qualcomm Atheros based Hardware
Author Message
Frakko
DD-WRT User


Joined: 06 May 2016
Posts: 331

PostPosted: Sat Mar 29, 2025 8:27    Post subject: IPTables Rules Reply with quote
Good morning,
I need to limit my VoIP device to only the server that provides the service since it is no longer supported by the manufacturer. I have set the rules but before applying them I wanted your opinion and any corrections:

Code:

# Server VoIP [START]
iptables -I FORWARD -p udp -s 1.2.3.4 --dport 5060:5080 -j ACCEPT
iptables -I FORWARD -p udp -s 1.2.3.4 --dport 16384:16482 -j ACCEPT
# Server VoIP [END]
iptables -I FORWARD -p udp --dport 5060:5080 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -I FORWARD -p udp --dport 16384:16482 -m state --state RELATED,ESTABLISHED -j ACCEPT
# VoIP IP 10.10.11.2
iptables -I FORWARD -p udp -d 10.10.11.2 -j logdrop
iptables -I FORWARD -p tcp -d 10.10.11.2 -j logdrop


Thanks
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Qualcomm Atheros based Hardware 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