Logo 
Search:

Unix / Linux / Ubuntu Answers

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds
  on Nov 24 In Unix / Linux / Ubuntu Category.

  
Question Answered By: Adah Miller   on Nov 24

1 line in your firewall script will get you the protection you want
(assuming you're using iptables and that your default policy is DROP):

iptables -t filter -A INPUT -p tcp -s <your_subnet> --dport 23 \
-i <your_LAN_interface> -j ACCEPT

Example:

iptables -t filter -A INPUT -p tcp -s 192.168.1.0/24 --dport 23 \
-i eth0 -j ACCEPT

Don't know what the ipchains equivalent would be.

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Login problem - Ipchains Firewall Or get search suggestion and latest updates.


Tagged: