PAT and containers with 2 net adapters

Marc Ballat

Renowned Member
Dec 28, 2015
38
7
73
57
Hello everybody,

I have a Debian 9 container with 2 IPs, one public (eth0) and one private (172.16.0.106 eth1).

I have configured iptables to forward port 10622 on the Proxmox host to port 22 on the container.

No luck, the connection fails. I can SSH the public IP and do a tcpdump while I try to connect to host.domain.com:10522.
:~$ sudo tcpdump -i eth1 port 22
listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
20:44:06.855847 IP host-xx-xxx-xx-xxx.dynamic.voo.be.55021 > guest.domain.com.ssh: Flags , seq 109409125, win 65535, options [mss 1460,nop,wscale 4,nop,nop,TS val 1247078513 ecr 0,sackOK,eol], length 0

Anyone has a clue ?

Thx. Marc
 
Well, from top of my head, I throw in routing.