pendragon1
Technical User
I have the following config in a cisco 827 router and somehow it's not working. I'm missing something and I can't find the solution. Maybe someone can help me. What I want to acchieve is: from inside any access to the internet and from outside only specific hosts access to specific ports (10000 and 10001). As soon as I apply the below config the restriction for ports 10000 and 10001 work fine, but access to the internet from inside is also blocked. We tried using only 1 access-group (101) on dialer1, but also 1 on dialer1 (ip access-group 101 in) and 1 on ethernet0 (ip access-group 102 in) but this also doesn't work. I hope someone can give me the right config.
Thanks in advance!
Andre
Config:
------------------ show running-config ------------------
Building configuration...
Current configuration : 3027 bytes
!
version 12.2
no service single-slot-reload-enable
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname aldo
!
logging rate-limit console 10 except errors
enable secret 5 <removed>
!
username aldo password 7 <removed>
username CRWS_Kannan privilege 15 password 7 <removed>
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
ip name-server 195.121.1.34
ip name-server 195.121.1.66
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.1.1 192.168.1.159
ip dhcp excluded-address 192.168.1.181 192.168.1.254
ip dhcp excluded-address 192.168.1.100
!
ip dhcp pool CLIENT
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
domain-name <removed>
lease 0 2
!
no ip dhcp-client network-discovery
lcp max-session-starts 0
!
!
!
interface Ethernet0
ip address 192.168.1.1 255.255.255.0
ip access-group 102 in
ip nat inside
hold-queue 32 in
!
interface ATM0
no ip address
no atm ilmi-keepalive
pvc 8/48
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
bundle-enable
dsl operating-mode auto
!
interface Dialer1
ip address negotiated
ip access-group 101 in
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap pap callin
ppp chap hostname <removed>
ppp chap password 7 141C1E1E0517202E74
ppp pap sent-username <removed> password 7 <removed>
ppp ipcp dns request
ppp ipcp wins request
hold-queue 224 in
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
ip http server
!
ip nat inside source list 102 interface Dialer1 overload
ip nat inside source static tcp 192.168.1.100 5901 interface Dialer1 5901
ip nat inside source static tcp 192.168.1.100 5900 interface Dialer1 5900
ip nat inside source static tcp 192.168.1.100 5801 interface Dialer1 5801
ip nat inside source static tcp 192.168.1.100 5800 interface Dialer1 5800
ip nat inside source static tcp 192.168.1.100 14001 interface Dialer1 14001
ip nat inside source static tcp 192.168.1.100 14000 interface Dialer1 14000
ip nat inside source static tcp 192.168.1.100 10001 interface Dialer1 10001
ip nat inside source static tcp 192.168.1.100 10000 interface Dialer1 10000
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 101 permit tcp host <removed> any eq 10000
access-list 101 permit tcp host <removed> any eq 10001
access-list 101 permit tcp host <removed> any eq 10000
access-list 101 permit tcp host <removed> any eq 10001
access-list 101 permit tcp host <removed> any eq 10000
access-list 101 permit tcp host <removed> any eq 10001
access-list 101 permit tcp host <removed> any eq 14000
access-list 101 permit tcp host <removed> any eq 14001
access-list 102 permit ip 192.168.1.0 0.0.0.255 any
dialer-list 1 protocol ip permit
!
line con 0
exec-timeout 120 0
transport input none
stopbits 1
line vty 0 4
access-class 23 in
exec-timeout 120 0
login local
length 0
!
scheduler max-task-time 5000
end
Thanks in advance!
Andre
Config:
------------------ show running-config ------------------
Building configuration...
Current configuration : 3027 bytes
!
version 12.2
no service single-slot-reload-enable
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname aldo
!
logging rate-limit console 10 except errors
enable secret 5 <removed>
!
username aldo password 7 <removed>
username CRWS_Kannan privilege 15 password 7 <removed>
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
ip name-server 195.121.1.34
ip name-server 195.121.1.66
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.1.1 192.168.1.159
ip dhcp excluded-address 192.168.1.181 192.168.1.254
ip dhcp excluded-address 192.168.1.100
!
ip dhcp pool CLIENT
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
domain-name <removed>
lease 0 2
!
no ip dhcp-client network-discovery
lcp max-session-starts 0
!
!
!
interface Ethernet0
ip address 192.168.1.1 255.255.255.0
ip access-group 102 in
ip nat inside
hold-queue 32 in
!
interface ATM0
no ip address
no atm ilmi-keepalive
pvc 8/48
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
bundle-enable
dsl operating-mode auto
!
interface Dialer1
ip address negotiated
ip access-group 101 in
ip nat outside
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap pap callin
ppp chap hostname <removed>
ppp chap password 7 141C1E1E0517202E74
ppp pap sent-username <removed> password 7 <removed>
ppp ipcp dns request
ppp ipcp wins request
hold-queue 224 in
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
ip http server
!
ip nat inside source list 102 interface Dialer1 overload
ip nat inside source static tcp 192.168.1.100 5901 interface Dialer1 5901
ip nat inside source static tcp 192.168.1.100 5900 interface Dialer1 5900
ip nat inside source static tcp 192.168.1.100 5801 interface Dialer1 5801
ip nat inside source static tcp 192.168.1.100 5800 interface Dialer1 5800
ip nat inside source static tcp 192.168.1.100 14001 interface Dialer1 14001
ip nat inside source static tcp 192.168.1.100 14000 interface Dialer1 14000
ip nat inside source static tcp 192.168.1.100 10001 interface Dialer1 10001
ip nat inside source static tcp 192.168.1.100 10000 interface Dialer1 10000
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 101 permit tcp host <removed> any eq 10000
access-list 101 permit tcp host <removed> any eq 10001
access-list 101 permit tcp host <removed> any eq 10000
access-list 101 permit tcp host <removed> any eq 10001
access-list 101 permit tcp host <removed> any eq 10000
access-list 101 permit tcp host <removed> any eq 10001
access-list 101 permit tcp host <removed> any eq 14000
access-list 101 permit tcp host <removed> any eq 14001
access-list 102 permit ip 192.168.1.0 0.0.0.255 any
dialer-list 1 protocol ip permit
!
line con 0
exec-timeout 120 0
transport input none
stopbits 1
line vty 0 4
access-class 23 in
exec-timeout 120 0
login local
length 0
!
scheduler max-task-time 5000
end