Score:0

GRE Tunnel subnet /29

vn flag

I watched this tutorial: https://www.lowendtalk.com/discussion/156850/howto-tunnel-ddos-protected-ovh-ip-to-vms-in-other-datacenter

And I have problems with the GRE tunnel, I created a VPS on server 2 with IP from the / 29 subnet (x.198), only I can't connect to the VPS. If I try to connect from server 1 to the VPS server created on server 2 it works (ssh x.198).

IP SV1: x.158
IP SV2: x.242
IP /29: x.192/29
Bridge: bridge0

SV1:
ip tunnel add gre1 mode gre remote x.242 local x.158 ttl 255
ip link set gre1 up
ip route add x.192/29 dev gre1

SV2:
ip tunnel add gre1 mode gre remote x.158 local x.242 ttl 255
ip link set gre1 up
ip rule add from x.192/29 table 666
ip route add default dev gre1 table 666
ip route add x.192/29 dev bridge0 table 666
ip addr add x.193/29 dev bridge0

SV 2 - /etc/sysconfig/network-scripts/ifcfg-bridge0
DEVICE=bridge0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
IPADDR="x.194"
NETMASK="x.248"
GATEWAY="x.193"
A.B avatar
cl flag
A.B
The tutorial never put two IP addresses on the bridge like you did (.194 and later .193) nor set its own address as default route. You should address this error, change your question and switch all these `x` by proper IP addresses in [RFC 5737](https://datatracker.ietf.org/doc/html/rfc5737) because I'm not even sure all the x are the same. There are 3 blocks to play with (or more with subnetting). 1 LAN needs a separate block unless really having to use the same (which is the case with this tunnel use case, but is it the case for *everything* or only a part of it?)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.