Accepting connections from a specified range of IP addresses
by Jason.nix from LinuxQuestions.org on (#6J1VW)
Hello,
I have a Tor server with IP address 172.20.1.100 and I want only IP addresses in the range 172.20.1.0/24 to be able to connect to it. Is the following iptables rule correct?
Code:iptables -A INPUT -p tcp -s 172.20.1.0/24 --dst 172.20.1.100 --dport 9050 --jump ACCEPTThank you.
I have a Tor server with IP address 172.20.1.100 and I want only IP addresses in the range 172.20.1.0/24 to be able to connect to it. Is the following iptables rule correct?
Code:iptables -A INPUT -p tcp -s 172.20.1.0/24 --dst 172.20.1.100 --dport 9050 --jump ACCEPTThank you.