Hi,
Please help me
Proxmox is working fine as well as my local machine.
/etc/network/interface
auto lo
iface lo inet loopback
auto enp0s31f6
iface enp0s31f6 inet static
address 213.XX.XX.XX/24
gateway 213.XX.XX.1
# bridge_stp off
post-up echo 1 > /proc/sys/net/ipv4/conf/enp0s31f6/proxy_arp
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp0s31f6 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp0s31f6 -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
post-up iptables -t nat -A POSTROUTING -d 10.10.10.44 -p tcp -m multiport --dports 21,443,25,80,3389 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -d 10.10.10.44 -p tcp -m multiport --dports 21,443,25,80,3389 -j MASQUERADE
______________________________________________________________________
iptables
iptables -t nat -A PREROUTING -p tcp -d 213.xx.xx.xx --dport 80 -i enp0s31f6 -j DNAT --to-destination 10.10.10.44:80
iptables -t nat -A PREROUTING -p tcp -d 213.xx.xx.xx --dport 443 -i enp0s31f6 -j DNAT --to-destination 10.10.10.44:443
iptables -t nat -A PREROUTING -p tcp -d 213.xx.xx.xx --dport 21 -i enp0s31f6 -j DNAT --to-destination 10.10.10.44:21
iptables -t nat -A PREROUTING -p tcp -d 213.xx.xx.xx --dport 25 -i enp0s31f6 -j DNAT --to-destination 10.10.10.44:25
_______________________________________________________________________
during the installation of proxmox we put the domain... Proxmox-VE-abc.xyz.com
after nginx installed on 10.10.10.44 and iptables port forwarding abc.xyz.com is showing Welcome to nginx!
but ftp is not able to access on port 21 and when we added port 22 rule in iptables then not able to access port 22
conclusion - only port 80 is forwarding not 21 & 22.
Proxmox version - Debian 10 & 7.2-4
10.10.10.44 - ubuntu 20.04
Please help.
Please help me
Proxmox is working fine as well as my local machine.
/etc/network/interface
auto lo
iface lo inet loopback
auto enp0s31f6
iface enp0s31f6 inet static
address 213.XX.XX.XX/24
gateway 213.XX.XX.1
# bridge_stp off
post-up echo 1 > /proc/sys/net/ipv4/conf/enp0s31f6/proxy_arp
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp0s31f6 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp0s31f6 -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
post-up iptables -t nat -A POSTROUTING -d 10.10.10.44 -p tcp -m multiport --dports 21,443,25,80,3389 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -d 10.10.10.44 -p tcp -m multiport --dports 21,443,25,80,3389 -j MASQUERADE
______________________________________________________________________
iptables
iptables -t nat -A PREROUTING -p tcp -d 213.xx.xx.xx --dport 80 -i enp0s31f6 -j DNAT --to-destination 10.10.10.44:80
iptables -t nat -A PREROUTING -p tcp -d 213.xx.xx.xx --dport 443 -i enp0s31f6 -j DNAT --to-destination 10.10.10.44:443
iptables -t nat -A PREROUTING -p tcp -d 213.xx.xx.xx --dport 21 -i enp0s31f6 -j DNAT --to-destination 10.10.10.44:21
iptables -t nat -A PREROUTING -p tcp -d 213.xx.xx.xx --dport 25 -i enp0s31f6 -j DNAT --to-destination 10.10.10.44:25
_______________________________________________________________________
during the installation of proxmox we put the domain... Proxmox-VE-abc.xyz.com
after nginx installed on 10.10.10.44 and iptables port forwarding abc.xyz.com is showing Welcome to nginx!
but ftp is not able to access on port 21 and when we added port 22 rule in iptables then not able to access port 22
conclusion - only port 80 is forwarding not 21 & 22.
Proxmox version - Debian 10 & 7.2-4
10.10.10.44 - ubuntu 20.04
Please help.