Codice: Seleziona tutto
Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname router
!
logging buffered 8192 debugging
enable secret 5 $1$Ea07$/rMSgutMCt3vcjYpTgd0n/
!
username router password 7 141B071B03102E22
!
dial-peer voice 1 pots
call-waiting
ring 0
port 1
destination-pattern 087256418
!
pots country IT
ip subnet-zero
no ip source-route
!
isdn switch-type basic-net3
!
!
!
interface Ethernet0
ip address 192.168.1.1 255.255.255.0
ip access-group 121 out
no ip directed-broadcast
no ip proxy-arp
ip nat inside
!
interface BRI0
no ip address
no ip directed-broadcast
encapsulation ppp
dialer pool-member 1
isdn switch-type basic-net3
isdn incoming-voice modem
ppp authentication chap pap callin
!
interface Dialer1
description ISP
ip address negotiated
ip access-group 121 in
no ip directed-broadcast
no ip proxy-arp
ip nat outs
encapsulation ppp
no ip split-horizon
dialer remote-name Cisco1
dialer idle-timeout 300
dialer string 7022334455 class DialClass
dialer hold-queue 10
dialer pool 1
dialer-group 1
pulse-time 0
ppp authentication chap pap callin
ppp chap hostname [email protected]
ppp chap password 7 151E1E1C0B3E2F2D
ppp pap sent-username [email protected] password 7 141B071B03102E22
!
ip nat inside source list 18 interface Dialer1 overload
ip nat inside source static tcp 192.168.1.10 4711 0.0.0.0 4
ip nat inside source static udp 192.168.1.10 4672 0.0.0.0 4672 extendable
ip nat inside source static tcp 192.168.1.10 4662 0.0.0.0 4662 extendable
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
!
!
map-class dialer DialClass
access-list 18 permit 192.168.1.0 0.0.0.255
access-list 121 deny udp any eq netbios-dgm any
access-list 121 deny udp any eq netbios-ns any
access-list 121 deny udp any eq 139 any
access-list 121 deny tcp any eq 137 any
access-list 121 deny tcp any eq 138 any
access-list 121 deny tc
access-list 121 permit ip any any time-range TIME
access-list 121 permit tcp any any eq 4662
access-list 121 permit tcp any any eq 4711
access-list 121 permit udp any any eq 4672
dialer-list 1 protocol ip permit
!
line con 0
exec-timeout 120 0
transport input none
stopbits 1
line vty 0 4
exec-timeout 0 0
login local
!
time-range TIME
periodic daily 0:00 to 23:59
!
end
Grazie