acl+nat
[Router]display current
Now create configuration...
Current configuration
!
version 1.74
local-user hr service-type administrator password simple 密码
firewall enable
aaa-enable
login-method authorization-mode telnet default
aaa accounting-scheme optional
!
acl 10 match-order auto
rule normal permit source 192.168.0.0 0.0.255.255
!
acl 102 match-order auto
rule normal permit tcp source any destination any destination-port equal telnet
rule normal permit tcp source any destination any destination-port equal www
rule normal permit tcp source any destination any destination-port equal pop2
rule normal permit tcp source any destination any destination-port equal pop3
rule normal permit tcp source any destination any destination-port equal domain
rule normal permit tcp source any destination any destination-port equal smtp
rule normal permit udp source any destination any destination-port equal dns
rule normal permit icmp source any destination any
rule normal permit tcp source any destination any destination-port equal 9525
rule normal permit tcp source any destination any destination-port equal 9510
rule normal deny ip source any destination any
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 192.168.8.1 255.255.255.0
firewall packet-filter 102 inbound
!
interface Ethernet1
ip address 218.*.*.74 255.255.255.240
nat outbound 10 interface
!
interface Serial0
link-protocol ppp
!
quit
ip route-static 0.0.0.0 0.0.0.0 218.*.*.65 preference 60
!
return
[Router]save
IT业的民工 回复于:2005-08-15 18:27:08
很普通的配置啊。没有什么特别的。
天涯明月刀 回复于:2005-08-16 09:54:56
晕没见标着简单配置了吗
就是要好上手,路由器配置能复杂到那!
堆积而已
jackylau 回复于:2005-08-16 13:26:44
怎么没来个讲解,知道每个参数的大概意思呀?
燕奔 回复于:2005-08-30 15:01:53
我叉叉叉....真晕..就那样设置??设置完干嘛用的?真是...我笨.不懂.只会玩儿简单的思科25系列
xiaoka2004 回复于:2005-09-04 20:29:16
很普通呀!
ALENG_LINUX 回复于:2005-09-05 21:45:48
帮忙解释一下啊
|