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

port forwarding

 

hello i need help pls 

 

I have windows server located in the school  on my privet lan

and i want to connect this server from my house via remote desktop function 

the External port number is 10015 its alredy opend inde router internal port 3398 

Bublic ip adress 81.15.15.200 privert ip adres of the LAN 192.168.0.2

 

So what command shoud i add hier?

 

The confiegration of my privet network as below

 

conf t

ip dhcp pool vlan 1

network 192.168.40.0 255.255.255.0

default-router 192.168.40.1

dns-server 8.8.8.8

exit

interface FastEthernet4

ip address dhcp

ip nat outside

no shutdown

exit

conf t

interface Vlan1

ip address 192.168.40.1 255.255.255.0

ip nat inside

ip nat inside source list 10 interface FastEthernet4 overload

ip nat inside source static tcp 192.168.40.3 3389 192.168.50.107 10000 extendable

ip route 0.0.0.0 0.0.0.0 192.168.50.254

exit

conf t

access-list 10 permit ip 192.168.40.0 0.0.0.255 any

access-list 10 permit any

do wr

end

 

 

 

thank u 

4 Replies 4

Francesco Molino
VIP Alumni
VIP Alumni
Hi

I believe the public ip is on your interface Fa4?
Your private server ip is routable through 192.168.50.254?

Based on your config this host doesn't have internet access or is it going through another path?
The command would be:
ip nat inside source static tcp 192.168.0.2 3398 interf fa4 10015

Are you sure your rdp port is 3398?

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

thanks 

yes the server ip is routable through 192.168.50.254? my router in the school gets internet through this privet ip adres 

 

then i will conect the server via rdp from the another netwerk lan 192.168.0.2  through de opened port 10015 in the router of lan .

and right rdp port is 3398

 

i will try this solution and i will send to you the feed back 

 

thanks 

But the solution won't work as your config isn't showing any interfaces in 192.168.50.0/24 subnet nor in 192.168.0.0/24.
Did you paste the whole config?

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

Hello


soukh1@hotmail.com wrote:

I have windows server located in the school  on my privet lan

and i want to connect this server from my house via remote desktop function 

the External port number is 10015 its alredy opend inde router internal port 3398 

Bublic ip adress 81.15.15.200 privert ip adres of the LAN 192.168.0.2


Your lan host doesnt look correct is this a typo as it should be in the subnet your vlan 1 which is 192.168.40.0/24

Try the following:

no ip nat inside source static tcp 192.168.40.3 3389 192.168.50.107 10000 extendable

no ip route 0.0.0.0 0.0.0.0 192.168.50.254

 

ip nat inside source static tcp 192.168.X.2 3389 81.15.15.200 10015

ip route 0.0.0.0 0.0.0.0 FastEthernet4 dhcp

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card