Community discussions

MikroTik App
 
tomeng
just joined
Topic Author
Posts: 9
Joined: Mon May 25, 2009 12:34 pm

PPTP forward port not working

Thu Aug 09, 2012 6:13 am

Dear All,

I have pptp server (192.168.9.5) behind Mikrotik, than i turn port forwarding like below

13 ;;; Test PPTP forwad
chain=dstnat action=dst-nat to-addresses=192.168.9.5 to-ports=1723 protocol=tcp dst-address=203.189.135.253 dst-port=1723
14 chain=dstnat action=dst-nat to-addresses=192.168.9.5 to-ports=47 protocol=tcp dst-address=203.189.135.253 dst-port=47
15 chain=dstnat action=dst-nat to-addresses=192.168.9.5 protocol=gre dst-address=203.189.135.253

But it's not working, please help to correct!

Best Regards,
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1222
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: PPTP forward port not working

Thu Aug 09, 2012 8:12 am

Your rules 14 and 15 are wrong.

You have to dst-nat port 1723 and forward protocol 47, not dst-nat port and protocol 47:

/ip firewall nat add action=dst-nat chain=dstnat dst-port=1723 in-interface=Ext-IF protocol=tcp to-addresses=192.168.9.5
/ip firewall filter add action=accept chain=forward in-interface=Ext-IF protocol=gre
/ip firewall filter add action=accept chain=forward out-interface=Ext-IF src-address=192.168.9.5
 
tomeng
just joined
Topic Author
Posts: 9
Joined: Mon May 25, 2009 12:34 pm

Re: PPTP forward port not working

Thu Aug 09, 2012 11:49 am

Hi docmarius,

I have done with your setting is still not working.

PPTP is working on port 1723 and tunnel gre, so we can only forward port 1723 and can not forward protocol=gre. that why not working

any idea
 
peson
Trainer
Trainer
Posts: 202
Joined: Tue Jul 20, 2004 10:33 am
Location: Sweden

Re: PPTP forward port not working

Thu Aug 09, 2012 12:29 pm

Hi docmarius,

I have done with your setting is still not working.

PPTP is working on port 1723 and tunnel gre, so we can only forward port 1723 and can not forward protocol=gre. that why not working

any idea
Check the order of your NAT rules and your forward filter set.
 
tomeng
just joined
Topic Author
Posts: 9
Joined: Mon May 25, 2009 12:34 pm

Re: PPTP forward port not working

Thu Aug 09, 2012 12:45 pm

here are my setting:

[tomeng@gw01] > ip firewall filter print

0 chain=forward action=accept src-address=192.168.9.5
out-interface=vl19-pub-gw

1 chain=forward action=accept protocol=gre in-interface=vl19-pub-gw


[tomeng@gw01] > ip firewall nat print

13 ;;; Test PPTP
chain=dstnat action=dst-nat to-addresses=192.168.9.5 to-ports=1723
protocol=tcp dst-address=203.189.135.253 in-interface=vl19-pub-gw
dst-port=1723

I see the fowarding port is correct, but tunel could not establish
 
peson
Trainer
Trainer
Posts: 202
Joined: Tue Jul 20, 2004 10:33 am
Location: Sweden

Re: PPTP forward port not working

Thu Aug 09, 2012 1:46 pm

here are my setting:

[tomeng@gw01] > ip firewall filter print

0 chain=forward action=accept src-address=192.168.9.5
out-interface=vl19-pub-gw

1 chain=forward action=accept protocol=gre in-interface=vl19-pub-gw


[tomeng@gw01] > ip firewall nat print

13 ;;; Test PPTP
chain=dstnat action=dst-nat to-addresses=192.168.9.5 to-ports=1723
protocol=tcp dst-address=203.189.135.253 in-interface=vl19-pub-gw
dst-port=1723

I see the fowarding port is correct, but tunel could not establish
Your forward filter shows only src-address=192.168.9.5, what's after #1?
The nat rule shows only #13, what's in front of it?
Please send a full printout.
 
tomeng
just joined
Topic Author
Posts: 9
Joined: Mon May 25, 2009 12:34 pm

Re: PPTP forward port not working

Fri Aug 10, 2012 4:46 am

I think filter firewall it 's not cause problem, while connecting I disable it, but still not work

the problem as i mention is protocol=gre could not forwad

I have log in my server, it said tunnel fail could not establish.
 
psamsig
Member Candidate
Member Candidate
Posts: 161
Joined: Sun Dec 06, 2009 1:36 pm
Location: Denmark

Re: PPTP forward port not working

Fri Aug 10, 2012 7:02 am

There is no need for making a NAT rule for GRE, the PPTP helper takes care of that, and as long you use standard port 1723, the helper will kick in automatically.

I just tested a similar senario, with a MikroTik router acting as PPTP server behind yet a MikroTik router with the NAT rule, and with a third MikroTik as client.

Who is online

Users browsing this forum: jaclaz, newbie54321 and 39 guests