- Joined
- Oct 21, 2018
- Messages
- 4
- Reaction score
- 0
Hello,
Using Debian IPTABLES to configure my firewall.
When I run the firewall check, I get a full cone test failed. Am I on the right track here using the following rules, what changes should I make?
#IP Tables Setup
sudo iptables -A INPUT -m state --state INVALID -j REJECT
sudo iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A INPUT -p tcp -s <my_ISP_IP> --dport 22 -j ACCEPT
sudo iptables -A INPUT -i lo -j ACCEPT
sudo iptables -A INPUT -j REJECT
## 3CX Specific
# Web Interface
sudo iptables -A INPUT -p tcp -s <my_ISP_IP> --dport 5001 -j ACCEPT
# SIP Trunk
sudo iptables -A INPUT -p udp -m iprange --src-range <my_SIP_Tunk_IP_Range> --dport 5060 -j ACCEPT
#3CX Tunnel Protocol Service Listener
sudo iptables -A INPUT -p tcp -s <3cx_server_ip> --dport 5090 -j ACCEPT
sudo iptables -A INPUT -p UDP -s <3cx_server_ip> --dport 5090 -j ACCEPT
#3CX Media Server (RTP) – WAN audio/video/t38 streams
sudo iptables -A INPUT -p udp -s <3cx_server_ip> -m multiport --dports 9000:10999 -j ACCEPT
Using Debian IPTABLES to configure my firewall.
When I run the firewall check, I get a full cone test failed. Am I on the right track here using the following rules, what changes should I make?
#IP Tables Setup
sudo iptables -A INPUT -m state --state INVALID -j REJECT
sudo iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A INPUT -p tcp -s <my_ISP_IP> --dport 22 -j ACCEPT
sudo iptables -A INPUT -i lo -j ACCEPT
sudo iptables -A INPUT -j REJECT
## 3CX Specific
# Web Interface
sudo iptables -A INPUT -p tcp -s <my_ISP_IP> --dport 5001 -j ACCEPT
# SIP Trunk
sudo iptables -A INPUT -p udp -m iprange --src-range <my_SIP_Tunk_IP_Range> --dport 5060 -j ACCEPT
#3CX Tunnel Protocol Service Listener
sudo iptables -A INPUT -p tcp -s <3cx_server_ip> --dport 5090 -j ACCEPT
sudo iptables -A INPUT -p UDP -s <3cx_server_ip> --dport 5090 -j ACCEPT
#3CX Media Server (RTP) – WAN audio/video/t38 streams
sudo iptables -A INPUT -p udp -s <3cx_server_ip> -m multiport --dports 9000:10999 -j ACCEPT