how working gre tunnel https://www.softaculous.com/board/index.php?tid=19234 <![CDATA[how working gre tunnel]]> https://www.softaculous.com/board/index.php?tid=19234&tpg=1#p57555 Wed, 24 Jan 2024 15:13:20 GMT https://www.softaculous.com/board/index.php?tid=19234&tpg=1#p57555 <![CDATA[how working gre tunnel]]> https://www.softaculous.com/board/index.php?tid=19234&tpg=1#p57216 Tue, 17 Oct 2023 09:22:37 GMT https://www.softaculous.com/board/index.php?tid=19234&tpg=1#p57216 <![CDATA[]]> https://www.softaculous.com/board/index.php?tid=19234&tpg=0#p57154 Public IPv4 server 2 (Hetzner) : 208.xxx.109.66
IP I want to use on server 2: 92.xxx.180.147/32
virtualizor new vps default gateway: 92.xxx.180.147
vps ip: 92.xxx.183.124

Bridge interface server2: viifbr0

Run this on server 1:

ip tunnel add gre1 mode gre remote 208.xxx.109.66 local 92.xxx.190.175 ttl 255
ip link set gre1 up

Run this on server 2:

ip tunnel add gre1 mode gre remote 92.xxx.190.175 local 208.xxx.109.66 ttl 255
ip link set gre1 up

Then we need to create a route on server 1 that will route the IP traffic over the GRE tunnel

Run this on server 1:

ip route add 92.xxx.180.147/32 dev gre1

The next step is to route data from the GRE tunnel to the bridge and back.

Run this on server 2:

ip rule add from 92.xxx.180.147/32 table 666
ip route add default dev gre1 table 666
ip route add 92.xxx.180.147/32 dev viifbr0 table 666

Last thing to do is to add the a IP the to bridge. This is gonna be the gateway for you VM's!
Use the second IP of the range!

Run this on server 2:

ip addr add 92.xxx.180.147/32 dev viifbr0

Not working and ip pool checked:
use routed.

Ip pool:
gateway: 92.xxx.180.147
Netmask: 255.255.0.0
Ip: 92.xxx.183.124]]>
Mon, 25 Sep 2023 16:47:08 GMT https://www.softaculous.com/board/index.php?tid=19234&tpg=0#p57154