T
T
tostpypy2016-07-02 01:19:57
linux
tostpypy, 2016-07-02 01:19:57

How can I make the IP of real visitors, clients go through the GRE tunnel?

I'm trying to figure out GRE tunnels on linux. There are two servers with public ip.

ip tunnel add tun0 mode gre remote IP_который_прячем local IP_который виден_людям ttl 255
ip link set tun0 up
ip addr add 10.10.10.1/24 dev tun0

ip tunnel add tun0 mode gre remote IP_который виден_людям local IP_который_прячем ttl 255
ip link set tun0 up
ip addr add 10.10.10.2/24 dev tun0


I created tunnels and packets go back and forth. (Ping, hping3...) How can I make the IP_of real visitors, clients pass through the tunnel and be visible on the IP_hidden. (not on Layer 7 osi)
Now let's say I get to some application and my IP is 10.10.10.1.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IPv4, 2016-07-02
@IPv4

No way, only if you send some kind of packet with a real address by the application itself, and on the server side it is parsed in the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question