Hi,
one CT works as a mailserver, reachable via NAT from external network with the following iptables-roules:
IP="xxx.xxx.xxx.xxx"
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp -d $IP --dport 25 -i eth0 -j DNAT --to-destination 192.168.0.105:25
Is there a way to connect to the mailserver-CT from internal network via public IP?
telnet xxx.xxx.xxx.xxx 25
Trying xxx.xxx.xxx.xxx...
telnet: Unable to connect to remote host: Connection refused
telnet via internal IP works.
Thanks, proxmox mit openvz rocks!
one CT works as a mailserver, reachable via NAT from external network with the following iptables-roules:
IP="xxx.xxx.xxx.xxx"
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp -d $IP --dport 25 -i eth0 -j DNAT --to-destination 192.168.0.105:25
Is there a way to connect to the mailserver-CT from internal network via public IP?
telnet xxx.xxx.xxx.xxx 25
Trying xxx.xxx.xxx.xxx...
telnet: Unable to connect to remote host: Connection refused
telnet via internal IP works.
Thanks, proxmox mit openvz rocks!