Article 6J1VW Accepting connections from a specified range of IP addresses

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.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments