Community discussions

MikroTik App
 
hajid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 96
Joined: Wed Mar 30, 2005 10:04 am

how to allow pptp at firewall

Fri Oct 20, 2006 4:02 am

hi all,

i try make firewall to allow pptp connection, i have turn on gre and pptp at service port. then i make firewall to allowed pptp connection to this router. this my firewall configuration :

Flags: X - disabled, I - invalid, D - dynamic
0 ;;; Checked For Viruses Port
chain=input action=jump jump-target=virus

1 chain=forward action=jump jump-target=virus

2 ;;; allow ping
chain=input protocol=icmp action=accept

3 chain=forward protocol=icmp action=accept

4 ;;; Accept established connections
chain=input connection-state=established action=accept

5 chain=forward connection-state=established action=accept

6 ;;; Accept related connections
chain=input connection-state=related action=accept

7 chain=forward connection-state=related action=accept

8 ;;; Drop invalid connections
chain=input connection-state=invalid action=drop

9 chain=forward connection-state=invalid action=drop


10 ;;; From All Network
chain=forward src-address-list=Allowed action=accept

11 ;;; To All Network
chain=forward dst-address-list=Allowed action=accept

12 ;;; Allowed PPPtP
chain=input protocol=tcp dst-port=1723 action=accept

13 chain=input protocol=tcp dst-port=47 action=accept



14 ;;; Port scanners to list
chain=input protocol=tcp psd=21,3s,3,1 action=add-src-to-address-list
address-list=port scanners address-list-timeout=2w

15 chain=forward protocol=tcp psd=21,3s,3,1 action=add-src-to-address-list
address-list=port scanners address-list-timeout=2w

16 ;;; NMAP FIN Stealth scan
chain=input protocol=tcp tcp-flags=fin,!syn,!rst,!psh,!ack,!urg
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

17 chain=forward protocol=tcp tcp-flags=fin,!syn,!rst,!psh,!ack,!urg
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

18 ;;; SYN/FIN scan
chain=input protocol=tcp tcp-flags=fin,syn
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

19 chain=forward protocol=tcp tcp-flags=fin,syn
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

20 ;;; SYN/RST scan
chain=input protocol=tcp tcp-flags=syn,rst
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

21 chain=forward protocol=tcp tcp-flags=syn,rst
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

22 ;;; FIN/PSH/URG scan
chain=input protocol=tcp tcp-flags=fin,psh,urg,!syn,!rst,!ack
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

23 chain=forward protocol=tcp tcp-flags=fin,psh,urg,!syn,!rst,!ack
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

24 ;;; ALL/ALL scan
chain=input protocol=tcp tcp-flags=fin,syn,rst,psh,ack,urg
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

25 chain=forward protocol=tcp tcp-flags=fin,syn,rst,psh,ack,urg
action=add-src-to-address-list address-list=port scanners
address-list-timeout=2w

26 ;;; dropping port scanners
chain=input src-address-list=port scanners action=drop

27 chain=forward src-address-list=port scanners action=drop

28 ;;; Drop everything else
chain=input action=drop

29 chain=forward action=drop

with this rule, pptp conenction still drop. please share
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Fri Oct 20, 2006 10:42 am

The error is in your second PPTP rule. You have to allow ip PROTOCOL 47 (GRE), not TCP port 47.
So this should be
13 chain=input protocol=47 action=accept
TCP port 1723 is the control connection, while the actual tunnel is GRE (protocol 47).

Best regards,
Christian Meis
 
jo2jo
Forum Guru
Forum Guru
Posts: 1003
Joined: Fri May 26, 2006 1:25 am

Sat Oct 21, 2006 5:11 pm

ive always wondered, is that rule the same as enabling the gre and pptp option in winbox under IP->FIrewall->service ports?


which one superciddes the other? (ie if i have it set to disable gre in FW but enabled in winbox service ports?)

tks
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Sat Oct 21, 2006 9:06 pm

The service ports in the firewall section are only needed for traversing NAT.
So there's not one taking priority over the other - those are two different things.

Best regards,
Christian Meis
 
yagamixp
just joined
Posts: 1
Joined: Mon Nov 22, 2010 9:10 am

Re: how to allow pptp at firewall

Fri Feb 01, 2013 8:51 am

GRE how can use key?
 
alstonamos
just joined
Posts: 3
Joined: Sat Apr 16, 2016 12:21 pm

Re: how to allow pptp at firewall

Mon Apr 18, 2016 2:44 pm

So there's not one taking priority over the other - those are two different things????




WALEEEED
 
alstonamos
just joined
Posts: 3
Joined: Sat Apr 16, 2016 12:21 pm

Re: how to allow pptp at firewall

Sat Apr 23, 2016 3:41 pm

So there's not one taking priority over the other - those are two different things????



-== crossword puzzles ==

Who is online

Users browsing this forum: aniaquen23232, Bing [Bot], maldridge and 91 guests