cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2487
Views
0
Helpful
4
Replies

Forwarding ports on a Cisco 2800 Router

Hey Everybody,

 

I've been trying to forward ports on my Cisco 2800 router so that i can use Owncloud and the VPN services of Windows and such. However when i go to websites that check the ports to make sure that their open it comes back closed. 

 

For example i have been trying to open port 8080 for owncloud with this command to the router in configuration mode

ip nat inside source static udp 10.227.10.100 8080 interface FastEthernet0/0 8080

 

but when i check to see if it is open it ultimately says closed and i am not sure at this point what i am doing wrong.

 

Below is my complete config.

 

Thanks,

 

Donnie

 

APPLECORE_ROUTER# show run
Building configuration...

Current configuration : 2883 bytes
!
! Last configuration change at 03:02:32 UTC Wed Nov 19 2014 by donbie
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname APPLECORE_ROUTER
!
boot-start-marker
boot-end-marker
!
!
enable secret 4 JmQOf2aMz5LDl56NetDgeW0L/tIT2CPDJ2FFnaMQN76
!
no aaa new-model
!
memory-size iomem 20
dot11 syslog
ip source-route
!
!
!
!
!
ip cef
no ip domain lookup
ip domain name ApplecoreBI.net
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
!
!
!
license udi pid CISCO2801 sn FTX1110Z0UN
username donbie password 7 153B051F05272A2A273C277747
!
redundancy
!
!
ip ssh version 2
!
!
!
!
!
!
!
interface Loopback0
 description SSH address
 ip address 10.227.50.1 255.255.255.0
!
interface FastEthernet0/0
 ip address dhcp
 ip nat outside
 ip virtual-reassembly in
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/1.10
 encapsulation dot1Q 10
 ip address 10.227.10.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
!
interface FastEthernet0/1.20
 encapsulation dot1Q 20
 ip address 10.227.20.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
!
interface FastEthernet0/1.30
 encapsulation dot1Q 30
 ip address 10.227.30.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
!
ip default-gateway 10.227.40.1
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip nat inside source list HOME interface FastEthernet0/0 overload
ip nat inside source static tcp 10.227.10.8 25565 interface FastEthernet0/0 2556
5
ip nat inside source static udp 10.227.10.8 9987 interface FastEthernet0/0 9987
ip nat inside source static tcp 10.227.10.8 30033 interface FastEthernet0/0 3003
3
ip nat inside source static tcp 10.227.10.8 10011 interface FastEthernet0/0 1001
1
ip nat inside source static tcp 10.227.10.9 25000 interface FastEthernet0/0 2500
0
ip nat inside source static udp 10.227.10.9 25000 interface FastEthernet0/0 2500
0
ip nat inside source static tcp 10.227.10.100 8080 interface FastEthernet0/0 808
0
ip nat inside source static udp 10.227.10.100 8080 interface FastEthernet0/0 808
0
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
!
ip access-list extended HOME
 permit ip 10.227.10.0 0.0.0.255 any
 permit ip 10.227.20.0 0.0.0.255 any
 permit ip 10.227.30.0 0.0.0.255 any
!
!
!
!
!
!
control-plane
!
!
!
line con 0
 exec-timeout 5 30
 password 7 022F0A480A0B0E2F43411B4C51
 logging synchronous
 login local
line aux 0
 exec-timeout 5 30
 password 7 022F0A480A0B0E2F43411B4C51
line vty 0 4
 access-class 1 in
 exec-timeout 30 0
 privilege level 15
 password 7 070C285F4D06
 login local
 transport preferred ssh
 transport input ssh
line vty 5 15
 exec-timeout 5 30
 password 7 0965401A1808161C0403167F7F
 login
 transport preferred ssh
 transport input all
!
scheduler allocate 20000 1000
end

1 Accepted Solution

Accepted Solutions

ghostinthenet
Level 7
Level 7

Try the following from the router's CLI and let me know if which ones (if any) work:

telnet 10.227.10.100 8080
telnet 10.227.10.100 8080 /source FastEthernet0

View solution in original post

4 Replies 4

ghostinthenet
Level 7
Level 7

Try the following from the router's CLI and let me know if which ones (if any) work:

telnet 10.227.10.100 8080
telnet 10.227.10.100 8080 /source FastEthernet0

Here is the ouput from trying those commands

 

APPLECORE_ROUTER#telnet 10.227.10.100 8080
Trying 10.227.10.100, 8080 ...
% Connection refused by remote host

APPLECORE_ROUTER#telnet 10.227.10.100 8080 /source FastEthernet0/0
Trying 10.227.10.100, 8080 ...
% Connection refused by remote host

APPLECORE_ROUTER#ssh 10.227.10.100
% Connection refused by remote host

Okay... that tells us the root problem.

There is no service listening on 8080/tcp on the destination server. Even if port forwarding is set up perfectly, connections will fail if nothing is listening.

Can you verify that the application you're connecting to has been started?

I did not have owncloud properly configured, it is suppose to run of 22 on SSH not 8080. 

Thank you for your assistance =D