Community discussions

MikroTik App
 
xtremeneo
just joined
Topic Author
Posts: 9
Joined: Mon Apr 07, 2014 4:09 pm

gre port forwarding

Tue May 27, 2014 6:15 am

im configuring eoip for my lan games
i would like to ask the proper way in forwarding gre port...i have dynamic isp and my modem is in route mode i need to port forward gre port so that i can ping on remote side

thanks in advance :)
 
User avatar
scotthammersley
Member Candidate
Member Candidate
Posts: 230
Joined: Fri Feb 22, 2013 7:16 pm
Location: Jackson, MS
Contact:

Re: gre port forwarding

Tue May 27, 2014 6:58 pm

try this:

/ip firewall nat
add action=dst-nat chain=dstnat comment="GRE Forwarding" disabled=no protocol=gre dst-address="YourGatewayAddress" to-addresses="YourInternalAddress"
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1224
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: gre port forwarding

Tue May 27, 2014 8:08 pm

im configuring eoip for my lan games
i would like to ask the proper way in forwarding gre port...i have dynamic isp and my modem is in route mode i need to port forward gre port so that i can ping on remote side
Just for your info: GRE is an IP protocol, not a specific port.
And that is why it can't be done on regular home routers via port forwarding configurations - there is usually an option VPN passthrough.

Anyway, dnat is achieved for a specific address as posted by scotthammersley.
For multiple outgoing sources with masquerade, or if your firewall is dropping unknown forward traffic by default, you also need a forwarding rule in your firewall setup:
/ip firewall filter
add chain=forward comment="Incoming GRE" in-interface=ext_if protocol=gre
add chain=forward comment="Outgoing GRE" out-interface=ext_if protocol=gre
 
xtremeneo
just joined
Topic Author
Posts: 9
Joined: Mon Apr 07, 2014 4:09 pm

Re: gre port forwarding

Wed May 28, 2014 1:14 pm

thanks for the reply ...ended up with bridge :)
 
User avatar
scotthammersley
Member Candidate
Member Candidate
Posts: 230
Joined: Fri Feb 22, 2013 7:16 pm
Location: Jackson, MS
Contact:

Re: gre port forwarding

Wed May 28, 2014 9:51 pm

Good deal. Glad you figured it out.

Who is online

Users browsing this forum: Hemhems, warpedhead and 51 guests