Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on LowEndTalk.com
GRE tunnel behind NAT
New on LowEndTalk? Please Register and read our Community Rules.

GRE tunnel behind NAT

dnwkdnwk Member

I'm trying to run a GRE tunnel from my home server to a VPS. I'm trying to figure out if that's possible. I could do port forwarding at home and my IP doesn't change. But I can't seem to find if GRE will work for port forwarding and which port to forward.

Designers: www.linkun.info

Comments

  • yoursunnyyoursunny Member
    edited March 29

    GRE runs in top of IPv4.
    It uses neither TCP nor UDP.
    Therefore, you should forward IP proto 47.
    http://www.networksorcery.com/enp/protocol/gre.htm

    If you have OpenWrt, simply type "47" into the protocol selection box, and the system will recognize GRE.

    I snagged Deal of the Year: $6.9/year, 6 vCPU, 8GB RAM, 105GB NVMe - but it got away.

  • dnwkdnwk Member

    @yoursunny said:
    GRE runs in top of IPv4.
    It uses neither TCP nor UDP.
    Therefore, you should forward IP proto 47.
    http://www.networksorcery.com/enp/protocol/gre.htm

    If you have OpenWrt, simply type "47" into the protocol selection box, and the system will recognize GRE.

    Thanks you. No wonder why I can't find GRE in OpenWRT's port forwarding. I guess you need to enter the number 47.

    Designers: www.linkun.info

  • SplitIceSplitIce Member, Provider
    edited March 30

    Yes @yoursunny is correct. GRE is ip proto 47.

    Most commercial retail routers don't have the option, but DMZ often forwards all protocols (depends how it's implemented).

    X4B - DDoS Protection: Affordable Anycast DDoS mitigation with PoPs in Europe, Asia, North and South America.
    Latest Offer: Brazil Launch 2020 Offer
  • CConnerCConner Member, Provider

    You could always try and using PFSense as your router. Has full support for GRE built in.

    GameDash, an AIO solution uniting billing, support & game server management.
    Visit our website or join our Discord to find out more.

Sign In or Register to comment.