sudo vim /etc/sysconfig/iptables
# the following rule specifies only Ip 101.2.3.44 can visit port 8080
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp -s 101.2.3.44 --dport 8080 -j ACCEPT
# a range of IPs are allowed to visit port 8080
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp -src-range 101.2.3.44-1.2.3.54 --dport 8080 -j ACCEPT
# restart iptables service to make the change take effect
sudo /etc/init.d/iptables restart
IPtables: open port for specific IP
The following are examples of allow a host or a range of hosts visit port 8080
Subscribe to:
Post Comments (Atom)
Datatable static image not found on the server
When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...
-
1. locate where is suexec by running the following: whereis suexec return suexec: /usr/sbin/suexec /usr/share/man/man8/suexec.8.gz 2. rename...
-
Case One The following procedure is good if you have admin account for Internal workspace. 1. Log into Internal workspace with admin accou...
-
Step 1. Install Oracle XE 11g 1. Download Oracle XE (oracle-xe-11.2.0-1.0.x86_64.rpm.zip) from Oracle official website. You need an accoun...
No comments:
Post a Comment