Community discussions

MikroTik App
 
samih
newbie
Topic Author
Posts: 42
Joined: Tue Jan 25, 2011 9:48 am
Location: Lebanon

routerboard 750. rdp connection to internal pc.

Thu Apr 28, 2011 7:32 pm

Hi everybody.
I want to remotely use my computer at work using RDP from home . This computer is connected to the internet through a routerboard 750.
considering the DSL IP on the REAL NIC of the routerboard is 111.111.111.111 and the IP on the LAN NIC of the routerboard is 192.168.1.1 . (interfaces named REAL and LAN)
the IP of the microsoft pc is 192.168.1.2.
How can i go through this configuration.
i think that it is a natting issue if i am not mistaken.

any help is appreciated.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: routerboard 750. rdp connection to internal pc.

Thu Apr 28, 2011 7:39 pm

http://wiki.mikrotik.com/wiki/Manual:IP ... rt_mapping
/ip firewall nat add chain=dstnat protocol=tcp dst-port=3389 dst-address=111.111.111.111 action=dst-nat to-address=192.168.1.2
 
samih
newbie
Topic Author
Posts: 42
Joined: Tue Jan 25, 2011 9:48 am
Location: Lebanon

Re: routerboard 750. rdp connection to internal pc.

Thu Apr 28, 2011 7:49 pm

thanks for ur reply.
I added this line of code to the terminal of the router using winbox but it is not working. when i enter 111.111.111.111:3389 in my browser or using mstc with IP 111.111.111.111 i could not connect.
i even updated this line of code to :
add chain=dstnat dst-address=111.111.111.111 protocol=tcp dst-port=3389 action=dst-nat to-addresses=192.168.1.2 to-ports=3389 comment="" disabled=no
also nothing happens .
any more help if u please
Last edited by samih on Thu Apr 28, 2011 8:20 pm, edited 1 time in total.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: routerboard 750. rdp connection to internal pc.

Thu Apr 28, 2011 7:56 pm

Do you have firewall filters in place blocking that traffic?
 
samih
newbie
Topic Author
Posts: 42
Joined: Tue Jan 25, 2011 9:48 am
Location: Lebanon

Re: routerboard 750. rdp connection to internal pc.

Thu Apr 28, 2011 8:17 pm

no i dont think so.
do u have any problem if i posted the output of ip firewall filter export here?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: routerboard 750. rdp connection to internal pc.

Thu Apr 28, 2011 8:42 pm

I'd recommend it.
 
samih
newbie
Topic Author
Posts: 42
Joined: Tue Jan 25, 2011 9:48 am
Location: Lebanon

Re: routerboard 750. rdp connection to internal pc.

Thu Apr 28, 2011 11:47 pm

hufyi
Last edited by samih on Wed May 11, 2011 11:54 am, edited 1 time in total.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: routerboard 750. rdp connection to internal pc.

Fri Apr 29, 2011 12:06 am

add chain=input connection-state=invalid action=drop comment="drop invalid" disabled=no 
add chain=input connection-state=established action=accept comment="allow packets" disabled=no 
add chain=input connection-state=related action=accept comment="allow related" disabled=no 
add chain=input in-interface=Lan src-address=192.168.40.0/24 action=accept comment="Allow Lan" disabled=no 
According to that you should be fine as long as you're coming in from an address in 192.168.40.0/24 behind the interface named "Lan". Are you?
 
samih
newbie
Topic Author
Posts: 42
Joined: Tue Jan 25, 2011 9:48 am
Location: Lebanon

Re: routerboard 750. rdp connection to internal pc.

Fri Apr 29, 2011 12:14 am

Sorry i did not get u .. but what i want is to connect from outside the network .
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: routerboard 750. rdp connection to internal pc.

Fri Apr 29, 2011 12:16 am

Then you'll have to add rules in the input chain that permit that.
 
samih
newbie
Topic Author
Posts: 42
Joined: Tue Jan 25, 2011 9:48 am
Location: Lebanon

Re: routerboard 750. rdp connection to internal pc.

Sat Apr 30, 2011 7:21 pm

i created pptp connection and i can connect normally from home to my routerboard using this connection
Can i benefit from this connection to make the rdp cpnnection ?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: routerboard 750. rdp connection to internal pc.

Sat Apr 30, 2011 9:09 pm

Yes, you could. If your PPTP client has a route to the subnet the RDP server is on you can connect to it via its private IP address.

Who is online

Users browsing this forum: No registered users and 14 guests