Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : how working gre tunnel



Threaded Mode | Print  

 how working gre tunnel (2 Replies, Read 169763 times)
nszero
Group: Member
Post Group: Newbie
Posts: 3
Status:
Public IPv4 (Test) server 1: 92.xxx.190.175
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
IP: --   

how working gre tunnel
funopisthenar
Group: Member
Post Group: Newbie
Posts: 1
Status:
wow this is new information for me. I will research more about it.
IP: --   

how working gre tunnel
GoodLeaf
Group: NOC
Post Group: Newbie
Posts: 1
Status:
Is this with a permanent bridge?
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
26 guests, 0 users.


All times are GMT. The time now is October 31, 2024, 11:40 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.034