免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: tosgd
打印 上一主题 下一主题

求教:如何打开25端口? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2005-07-12 10:27 |只看该作者

求教:如何打开25端口?

[quote]原帖由 "惠繪洋"]25是mail 中SMTP的端口, 你只要開啟sendmail或qmail等mail服務後, 25端口就會開啟了,可用 "netstat -nat |grep 25" 來看看25有沒有開啟, 若開了才可以以telnet localhost 25登入呢.[/quote 发表:

我现在测试不了,只有晚上公司没人的时候才可以把连接外网的网线拔下来插到Linux系统上,我们现在正在摸索阶段(学习中。。。)。如果这样还是不行,还有其它原因吗?

论坛徽章:
0
12 [报告]
发表于 2005-07-12 16:35 |只看该作者

求教:如何打开25端口?

正常的学习过程是:尝试、分析、反馈、再分析
你的学习过程是:问、再问、还问。。。

论坛徽章:
0
13 [报告]
发表于 2005-07-13 13:36 |只看该作者

求教:如何打开25端口?

教训的是,主要是我现在没有硬件条件。只有周末不上班的时候我才有机会。所以还需要各位多多指教!

论坛徽章:
0
14 [报告]
发表于 2005-07-16 13:57 |只看该作者

求教:如何打开25端口?

请问它所指的是哪个文件中的错误呀
[root@xinlong-dl root]# tcpdump -i eth(1)
bash: syntax error near unexpected token `('

论坛徽章:
0
15 [报告]
发表于 2005-07-16 14:11 |只看该作者

求教:如何打开25端口?

# tcpdump -i eth1

论坛徽章:
0
16 [报告]
发表于 2005-07-16 14:57 |只看该作者

求教:如何打开25端口?

我写了一个防火墙脚本文件,请帮我分析一下是哪里出错了
filter-firewall文件:
#!/bin/bash
echo "Starting iptables rules..."
echo "1" >;/proc/sys/net/ipv4/ip_forward
IPT=/sbin/iptables
WWW-SERVER=192.168.0.1
EMAIL-SERVER=192.168.0.1
IP_RANGE="192.168.0.0/254"
$IPT -F
$IPT -P FORWARD DROP
$IPT -A FORWARD -p tcp -d $WWW-SERVER --dport www -i eth1 -j ACCEPT
$IPT -A FORWARD -p tcp -d $EMAIL-SERVER --dport smtp -i eth1 -j ACCEPT
$IPT -A FORWARD -p tcp -s 0/0 --sport ftp-data -d $IP_RANGE -i eth1 -j ACCEPT
$IPT -A FORWARD -p tcp -d 192.168.0.0/254 ! -syn -i eth1 -j ACCEPT
$IPT -A FORWARD -P udp -d 192.168.0.0/254 ! eth1 -j ACCEPT
$IPT -A FORWARD -s 192.168.0.0/254 -i eth0 -j ACCEPT
$IPT -A FORWARD -f -m limit --limit 100/s --limit-burst 100 -j ACCEPT
$IPT -A FORWARD -p icmp -m limit --limit 1/s --limit-burst 10 -j ACCEPT
~

[root@xinlong-dl mail]# /etc/rc.d/filter-firewall
Starting iptables rules...
/etc/rc.d/filter-firewall: line 5: WWW-SERVER=192.168.0.1: command not found
/etc/rc.d/filter-firewall: line 6: EMAIL-SERVER=192.168.0.1: command not found
iptables v1.2.7a: host/network `-SERVER' not found
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.7a: host/network `-SERVER' not found
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.7a: invalid mask `254' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.7a: host/network `-syn' not found
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.7a: Can't use -P with -A

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.7a: invalid mask `254' specified
Try `iptables -h' or 'iptables --help' for more information.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP