Frakko DD-WRT User
Joined: 06 May 2016 Posts: 330
|
Posted: Sat Mar 29, 2025 8:27 Post subject: IPTables Rules |
|
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 |
|