imam stalnu vezu sa jednom IP adresom. Zelim da na serveru u LANU (IP: 10.40.0.10) hostiram neku web stranicu, medjutim, niko iz unutrasnjosti LAN-a, ne moze da pristupi nasjo javnoj IP adresi. Saljem konf cisco routera:
Code:
interface Ethernet0
ip address 10.40.0.1 255.255.0.0
no ip directed-broadcast
ip nat inside
!
interface Serial0
ip address 80.65.x.x 255.255.255.252
no ip directed-broadcast
ip nat outside
encapsulation ppp
no ip mroute-cache
!
ip nat inside source list 1 interface Serial0 overload
ip nat inside source static tcp 10.40.0.10 111 80.65.x.x 111 extendable
ip nat inside source static tcp 10.40.0.10 110 80.65.x.x 110 extendable
ip nat inside source static tcp 10.40.0.10 25 80.65.x.x 25 extendable
ip nat inside source static tcp 10.40.0.10 53 80.65.x.x 53 extendable
ip nat inside source static tcp 10.40.0.10 80 80.65.x.x 80 extendable
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 80.65.x.x
!
access-list 1 permit 10.40.0.0 0.0.255.255
interface Ethernet0
ip address 10.40.0.1 255.255.0.0
no ip directed-broadcast
ip nat inside
!
interface Serial0
ip address 80.65.x.x 255.255.255.252
no ip directed-broadcast
ip nat outside
encapsulation ppp
no ip mroute-cache
!
ip nat inside source list 1 interface Serial0 overload
ip nat inside source static tcp 10.40.0.10 111 80.65.x.x 111 extendable
ip nat inside source static tcp 10.40.0.10 110 80.65.x.x 110 extendable
ip nat inside source static tcp 10.40.0.10 25 80.65.x.x 25 extendable
ip nat inside source static tcp 10.40.0.10 53 80.65.x.x 53 extendable
ip nat inside source static tcp 10.40.0.10 80 80.65.x.x 80 extendable
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 80.65.x.x
!
access-list 1 permit 10.40.0.0 0.0.255.255
Sta da radim....