• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Cisco IOS help

Fuzznuts

Senior member
i am trying to forward a range of ports into a server from a 2503 router for single ports it is no problem and wokrs fine with

ip nat inside source static tcp 192.168.0.2 25 interface serial 1 25

but how would i do this for a range of ports for a game server that needs 100 or os ports forwarded of course i could add them one by on but there has to be and easier way.

any help mucho appreciated.
 
12.1(18) here is my running config

!
! Last configuration change at 00:05:27 gmt Mon Mar 1 1993
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Cisco2503
!
boot system flash 1:c2500-i-l.121-18.bin
enable password 7
!
!
!
!
clock timezone gmt 0
ip subnet-zero
ip name-server 192.168.0.2
!
isdn switch-type basic-net3
!
!
!
interface Ethernet0
description connected to Cisco1548
ip address 192.168.0.1 255.255.255.0
ip nat inside
!
interface Serial0
no ip address
ip nat inside
no ip mroute-cache
shutdown
!
interface Serial1
no ip address
ip nat inside
shutdown
!
interface BRI0
description connected to Internet
no ip address
ip access-group 101 in
ip nat outside
encapsulation ppp
dialer rotary-group 1
isdn switch-type basic-net3
no cdp enable
!
interface Dialer1
description connected to Internet
bandwidth 64
ip address negotiated
ip access-group 101 in
ip nat outside
encapsulation ppp
no ip split-horizon
dialer in-band
dialer idle-timeout 100
dialer string
dialer hold-queue 10
dialer-group 1
no cdp enable
ppp authentication chap pap callin
ppp chap hostname
ppp chap password 7
ppp pap sent-username
!
router rip
version 2
passive-interface Dialer1
network 192.168.0.0
no auto-summary
!
ip nat inside source list 1 interface Dialer1 overload
ip nat inside source static tcp 192.168.0.2 110 interface Dialer1 110
ip nat inside source static tcp 192.168.0.2 1214 interface Dialer1 1214
ip nat inside source static tcp 192.168.0.2 25 interface Dialer1 25
ip nat inside source static tcp 192.168.0.2 22 interface Dialer1 22
ip nat inside source static tcp 192.168.0.2 80 interface Dialer1 80
ip nat inside source static tcp 192.168.0.3 20 interface Dialer1 20
ip nat inside source static tcp 192.168.0.3 21 interface Dialer1 21
ip nat inside source static tcp 192.168.0.3 6667 interface Dialer1 6667
ip nat inside source static tcp 192.168.0.3 28910 interface Dialer1 28910
ip nat inside source static tcp 192.168.0.3 29900 interface Dialer1 29900
ip nat inside source static tcp 192.168.0.3 29920 interface Dialer1 29920
ip nat inside source static udp 192.168.0.3 4321 interface Dialer1 4321
ip nat inside source static udp 192.168.0.3 27900 interface Dialer1 27900
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
no ip http server
!
access-list 101 remark Traffic Allowed and denied by IOS
access-list 101 permit tcp any any eq pop3
access-list 101 permit tcp any any eq 22
access-list 101 permit tcp any any eq smtp
access-list 101 permit tcp any any eq 80
access-list 101 permit tcp any any eq ftp
access-list 101 permit tcp any any eq ftp-data
access-list 101 deny tcp any any eq telnet
access-list 101 deny tcp any any range 137 139
access-list 101 deny udp any any range 137 139
access-list 101 permit udp any any
access-list 101 permit ip any any
access-list 1 permit 192.168.0.0 0.0.0.255
dialer-list 1 protocol ip permit
snmp-server community public RO
snmp-server community private RW
snmp-server location Server Room
snmp-server contact Paul
!
line con 0
exec-timeout 0 0
password 7
login
line aux 0
line vty 0 4
password 7
login
!
ntp source Ethernet0
ntp master 2
ntp server 192.168.0.2
end
 
After doing a little research at the Cisco TAC it doesn't appear that there is a way to forward a range of ports. But, I have all the documentation on Cisco's ip nat commands should you want them. Just send me a PM with your e-mail address and it will be yours.
 
Back
Top