TECHNOLOGY TIPS

IPTables – Opening up Multiple Ports – One Liner

#—for all subnets / tcp protocol—# #iptables -A INPUT -m state --state NEW -m tcp -p tcp -s 192.168.122.0/24 --match multiport --dports 22,25,123,53 #—for subnet – 192.168.122.0/24 / tcp protocol —# #iptables -A INPUT -m state --state NEW -m tcp -p tcp -s 192.168.122.0/24 --match multiport --dports 22,25,123,53 Note:...

Read More

TECHNOLOGY TIPS

Opening Port on Iptables

By default iptables is the firewall that is enabled on linux systems. It is very simple to open ports without totally disabling the iptables service. Here are simple steps: iptables -I INPUT -p tcp --dport <port> -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I OUTPUT -p tcp --sport <port>...

Read More

TECHNOLOGY TIPS

Increasing SSH Timeouts

Here are the steps to increase ssh timeout at the server level on Linux OS: These steps are performed on CentOS: Modify the following directives by editing the sshd config file: /etc/ssh/sshd_config TCPKeepAlive yes ClientAliveInterval 30 ClientAliveCountMax 99999   Restart SSH Demon after modifying the config file: [[email protected] ~]#...

Read More