Category : Iptables

Add the clean IP to the server. Edit the firewall to NAT all connections FROM port 25 to use the new IP. # iptables -t nat -A POSTROUTING -p tcp –dport 25 -j SNAT –to-source NEW.IPA.DDR.ESS # service iptables save Ensure that the IP is on eth1 or… # iptables -t nat -A POSTROUTING -o ..

Read more

Block Incoming Request From IP 1.2.3.4 The following command will drop any packet coming from the IP address 1.2.3.4: # /sbin/iptables -I INPUT -s {IP-HERE} -j DROP # /sbin/iptables -I INPUT -s 1.2.3.4 -j DROP Finally, the last thing we need to do is save our rules so that next time we reboot our computer ..

Read more

How to add an IP to access the plesk panel and ssh Open flle /etc/sysconfig/iptables: # nano /etc/sysconfig/iptables -A INPUT -s 72.177.xxx.xxx/32 -p tcp -m tcp –dport 8443 -j ACCEPT -A INPUT -s 66.226.xx.xx/32 -p tcp -m tcp –dport 10222 -j ACCEPT Save and restart iptables service iptabl..

Read more