2

I've managed to setup a GRE tunnel between two servers using BuyVM's very great guide (also used a guide via ServerFault) It simply works. I can ping internally

So. To get into perspective:

  • A = 1.1.1.1
  • B = 2.2.2.2

DDOS PROTECTED IP:

  • C = 3.3.3.3

I want all traffic from A (1.1.1.1) to go to B (2.2.2.2)
Simply I want this due to DDoS protection. The latencey is 10ms between A and B so I think that's a fair trade off.


When Using buyVM's tutorial, the connection is made and both servers can ping each other in its respective IP (192.168.168.1) for A and (192.168.168.2) for B.
Now wanting to route my DDoS secured IP (3.3.3.3) to 2.2.2.2 (B)
iptables -t nat -A POSTROUTING -s 192.168.168.0/30 ! -o gre+ -j SNAT --to-source 3.3.3.3
-> Outcome of Curl


[root@DKDOS ~]# curl ipinfo.io/ip --interface 192.168.168.1 curl: (7) bind failed with errno 99: Cannot assign requested address
Could someone tell me what I am doing wrong?

Thanks

Kevin Als
  • 21
  • 2
  • Also. Retrying with some other configs gives this when trying to get IP:
    curl: (7) couldn't connect to host
    – Kevin Als Jun 15 '17 at 20:53

1 Answers1

0

For each and everyone

modprobe ip_gre
modprobe ip_nat_pptp
modprobe ip_conntrack_pptp

Then per IPTables allowing the connections to happend fixed my issue. br> Thanks anyway everyone that have looked at this

Kevin Als
  • 21
  • 2