04-07-2020 05:36 PM
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
04-07-2020 08:22 PM
04-08-2020 06:39 AM
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
04-08-2020 07:14 PM
04-08-2020 02:27 AM - edited 04-08-2020 02:28 AM
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
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