PAT and containers with 2 net adapters

Marc Ballat

Well-Known Member
Dec 28, 2015
33
3
48
55
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!