Iptables is a firewall under Linux and is also the service name. Service iptables Status View firewall stateService iptables start to turn on the firewallService iptables Stop shutting down the firewallService iptables Restart Restart firewallFirewalls Open specific ports:① file/etc/sysconfig/iptables② Add:-A rh-
Tags:/etc tables Linux edit IV part sysconfig style sbinView Status:Iptables-l-NAdd the following methods for opening a specific port:Use Iptables to open the following ports/sbin/iptables-i input-p TCP--dport 8000-j ACCEPTSave/etc/rc.d/init.d/iptables SaveRestart ServiceService Iptables RestartSee if the port you want to open takes effect?/etc/init.d/iptables st
Recently in the construction of lamp environment, configure a variety of environments need to open the port, always in Baidu too troublesome, record
Original address: http://m.blog.csdn.net/sherwin/article/details/49562667
-------------------------------------------------------------------------
#/sbin/iptables-i input-p TCP--dport 80-j ACCEPT
#/sbin/iptables-i input-p TCP--dport 22-j ACCEPT#/sbin/iptables-i input-p TCP--dport 3306-j ACCEPTAnd then S
containingCreates a component that connects or listens on ports for all executable components. Interval Displays the selected statistics, between each displayPause interval (in seconds). Press CTRL + C to stop re-Displays statistics. If omitted, Netstat displays the currentConfiguration information (show only once)NETSTAT-NL | grep 110You can use it if you see the result (the port number is turned on)First, you can look at the/etc/services file, cha
Linux open ports, linux open ports
In Linux, the server cannot be connected when software access is installed. In this case, check whether the corresponding port is enabled. For example, after svn is installed, unable to connect:
When the svn service is started, you Can use commands on the server to check out the files
With the development of VoIP and NGN technology, the Openh323 era is about to transition to the SIP era, in the open-source protocol stack, which occupies a dominant position, it puts a complex and advanced protocol stack presented in the eyes of ordinary programmers, which has made a contribution to the popularization of the system. However, when in the SIP era,
has quite good audio quality.
25.25%
Resiprocate
SIP stack that is RFC 3261 compliant.
9.46%
Sipcon1
Sipcon1 is a standards-compliant soft phone using video, text and voice with accessibility features.
Teleme home Portal
Project goal is to create an open source instant messenger and Telephone User Agent compatible with industry standards for jabber,
1. disable all INPUTFORWARDOUTPUT to open only some ports. The following is the command implementation: iptables-PINPUTDROPiptables-PFORWARDDROPiptables-POUTPUTDROP and then use the command iptables-L-n to check whether the settings are correct. you can see that all the settings have been dropped.
1. disable all input forward output and only open it to some ports
represents the first rule.When you delete the previous rule, the number will change as well.OK, we have removed the previous 2 rules, 22 port can also be used normally, it means that no problem.Save it below, and don't forget, otherwise the reboot will revert back to the original look.Service Iptables SaveTo save.Saving firewall rules to/etc/sysconfig/iptables: [OK]In fact, the rules you just set are written to the/etc/sysconfig/iptables file.6. DNS
1. disable all INPUTFORWARDOUTPUT to open only some ports. The following is the command implementation: iptables-PINPUTDROPiptables-PFORWARDDROPiptables-POUTPUTDROP and then use the command iptables-L-n to check whether the settings are correct. then, we can see that all the settings have been dropped, 1. disable all input forward output and only open it to some
one pair test end stop, here we will run time modified to 5 minutes, later can be based on testing requirements to increase the testing time;? Run again, this test shipped 5 minutes before the end, the data obtained closer to the real level;? The test, just test the notebook a packet to the notebook B, then you can reverse test notebook B package to notebook A, on the pair bar right mouse button, select Copy, Paster, copy a pair;? This will get two pair, on one of the mouse double-click;? Modif
1) Start the slogan: -Jaccept# -J accept#3306 -j ACCEPT2) Then Save:#/etc/rc.d/init.d/iptables Save3) To view open ports:#/etc/init.d/iptables Status-------------------------------------------------------Additional instructions: Turn off the firewall#/etc/init.d/iptables stop#service iptables Stop #停止服务#service iptables Start #开启服务View
1. Open port (take Port 7777 as an example)Vi/etc/sysconfig/iptables Open the configuration file by adding the following statement:-A input-p tcp-m state--state new-m TCP--dport 7777-j ACCEPTRestarting the firewall/etc/init.d/iptables restartModify Complete2. Close the port (take Port 7777 as an example)Vi/etc/sysconfig/iptables
In general, we adopt some powerful anti-Black software and firewall to ensure the security of our system. This article proposes a simple method to help you prevent illegal intrusion by limiting ports.
Illegal intrusionIn short, illegal intrusion can be roughly divided into four types:1. Scan the port to attack the host through known System bugs.2. Planting Trojans and using backdoors opened by Trojans to a
Article Title: redhat5) add and force close ports on the firewall. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
# Cd/etc/sysconfig
# Ls
# Vi iptables (gedit iptables)
Add
-A RH-Fir
/init.d/iptables statusAfter the installation of TOMCAT7, found in addition to the function to visit the outside world, in the cost of a few twists and turns, the summary steps are as follows:1. Modify the file/etc/sysconfig/iptables[Email protected] ~]# cd/etc/sysconfig/[Email protected] sysconfig]# VI iptablesThe contents of the file are as follows, note that the red line is newly added to open 8080 ports
Tags: file input close Linux server sysconf off style body colorHow to take effect after reboot:1. Open: Chkconfig iptables on2. Off: Chkconfig iptables offImmediate effect, failure after reboot:1. Open: Service iptables start2. Close: Service iptables stopWhen the firewall is turned on, do the following to selectively open
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.