S
S
Sergey Savostin2021-09-26 18:06:35
Computer networks
Sergey Savostin, 2021-09-26 18:06:35

Routing through an external host?

Whether prompt it is possible to implement such idea:
1. There is a physical server with white ip1. On it, under Proxmox, N virtual machines with
10.0
. .0.* from the first server via ip2.
4. There is no access inside to virtual machines. There is ssh access to Proxmox and ssh to ip2. Those. it is necessary to resolve the issue outside virtualok.
5. You don't need to forward any ports inside virtual machines - there will be only http requests from virtual machines to the world.

I understand how to solve the issue through SOCKS5 (ssh tunnel), but it seems to be impossible to solve it from the outside, right?
Can I somehow "forward" 10.0.0.* on Proxmox via ip2, and not via ip1?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
poisons, 2021-10-01
@poisons

Sergey Savostin
Start simple .
1. Establish a GRE tunnel between your proxmox and host2. check that there is ip connectivity through GRE between hosts.

something like this on proxmox

/etc/network/interfaces
auto tun0
iface tun0 inet static
address 192.168.100.2
netmask 255.255.255.252
up ifconfig tun0 multicast
pre-up iptunnel add tun0 mode gre local ip1 remote ip2 ttl 225
pointopoint 192.168.100.1
post-down iptunnel del tun0

on your second host, everything is the same, but mirrored.
Great, you have gre, you can check it simply by pinging each other 192.168.100.1 -> 192.168.100.2
2. Here you can go two ways, wrap all traffic from virtual machines into a tunnel or wrap selectively.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question