11-25-2014 06:05 PM - edited 03-07-2019 09:39 PM
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
Solved! Go to Solution.
11-25-2014 10:15 PM
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
11-25-2014 10:15 PM
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
11-27-2014 07:35 AM
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
11-27-2014 07:39 AM
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?
11-27-2014 09:49 AM
I did not have owncloud properly configured, it is suppose to run of 22 on SSH not 8080.
Thank you for your assistance =D
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide