当前位置: 技术问答>linux和unix
Linux 怎么让防火墙允许某个端口?怎么查看哪些端口已经被允许了?
来源: 互联网 发布时间:2016-05-09
本文导语: 如题 我装cvs,其它正常 客户端不能登录 怀疑2401端口被堵了 | 装guarddog Install & Setup Firewall - GuardDog 1. Install GuardDog $ sudo apt-get install guarddog 2. Open GuardDog, it may report missing file...
如题
我装cvs,其它正常 客户端不能登录 怀疑2401端口被堵了
我装cvs,其它正常 客户端不能登录 怀疑2401端口被堵了
|
装guarddog
Install & Setup Firewall - GuardDog
1. Install GuardDog
$ sudo apt-get install guarddog
2. Open GuardDog, it may report missing file when open it for the first time, leave it.
$ gksudo guarddog
3. GuardDog default has no rule, you must know exactly which rules you need, here is some guide.
Open tab Protocol, select Internet Zone, generally we need protocols like: DNS, HTTP, HTTPS, FTP for internet connection; POP3, SMTP for mail client; NTP to synchronize time; SSH for secure remote control; Jabber, MSN for IM; etc.
Open tab Advanced, check 'Enable DHCP on Interfaces'.
4. Add New Protocol for QQ(the most widely used IM client in China)
Open tab Advanced, press new protocol to create a new one, Name: QQ, Type: UDP, Ports: 4000-8000.
Open tab Protocol, enable QQ protocol.
5. Press apply to take effect
Install & Setup Firewall - GuardDog
1. Install GuardDog
$ sudo apt-get install guarddog
2. Open GuardDog, it may report missing file when open it for the first time, leave it.
$ gksudo guarddog
3. GuardDog default has no rule, you must know exactly which rules you need, here is some guide.
Open tab Protocol, select Internet Zone, generally we need protocols like: DNS, HTTP, HTTPS, FTP for internet connection; POP3, SMTP for mail client; NTP to synchronize time; SSH for secure remote control; Jabber, MSN for IM; etc.
Open tab Advanced, check 'Enable DHCP on Interfaces'.
4. Add New Protocol for QQ(the most widely used IM client in China)
Open tab Advanced, press new protocol to create a new one, Name: QQ, Type: UDP, Ports: 4000-8000.
Open tab Protocol, enable QQ protocol.
5. Press apply to take effect
|
root进入终端,
# setup
选择防火墙设置,进去打开你的端口或者干脆禁用就可以了
# setup
选择防火墙设置,进去打开你的端口或者干脆禁用就可以了
|
防火墙的配置不太清楚,但是一般在设定文件中会有设定项
设定是否只让本地连接还是任何人都可以连接,楼主可以先找找
设定是否只让本地连接还是任何人都可以连接,楼主可以先找找
|
可以先关掉防火墙看看是不是防火墙造成的。
|
估计是你的相关服务没开
|
我记得FC上有防火墙 的选项可以选择,在里面可以设置你需要的端口打开的,
|
使用:iptables -L -n --line-num
查看防火墙(iptables)的配置策略
请参考:http://blog.csdn.net/bain8181/archive/2008/01/18/2051552.aspx
查看防火墙(iptables)的配置策略
请参考:http://blog.csdn.net/bain8181/archive/2008/01/18/2051552.aspx
|
顶楼上