Hi proxmox community, i recently setup a windows virtual machine and wanted to run the arma3 game server files on there to use it as a dedicated host.
The server files run perfectly however when i try to connect to the server i cant, it seems like the port 2302 is blocked or not forwarded.
Im using a bridged connection and no matter what ive tried i cant seem to port forward the correct ports, here is my /etc/network/interfaces
can anyone help me? im really struggling to do this.
Thanks everyone.
The server files run perfectly however when i try to connect to the server i cant, it seems like the port 2302 is blocked or not forwarded.
Im using a bridged connection and no matter what ive tried i cant seem to port forward the correct ports, here is my /etc/network/interfaces
Code:
# The loopback network interfaceauto lo
iface lo inet loopback
# for Routing
auto vmbr1
iface vmbr1 inet manual
post-up /etc/pve/kvm-networking.sh
bridge_ports dummy0
bridge_stp off
bridge_fd 0
# vmbr0: Bridging. Make sure to use only MAC adresses that were assigned to you.
auto vmbr0
iface vmbr0 inet static
address 91.121.155.43
netmask 255.255.255.0
network 91.121.155.0
broadcast 91.121.155.255
gateway 91.121.155.254
bridge_ports eth0
bridge_stp off
bridge_fd 0
iface vmbr0 inet6 static
address 2001:41D0:1:DC2b::1
netmask 64
post-up /sbin/ip -f inet6 route add 2001:41D0:1:DCff:ff:ff:ff:ff dev vmbr0
post-up /sbin/ip -f inet6 route add default via 2001:41D0:1:DCff:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del default via 2001:41D0:1:DCff:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del 2001:41D0:1:DCff:ff:ff:ff:ff dev vmbr0
auto vmbr2
iface vmbr2 inet static
address 192.168.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr2/proxy_arp
post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j SNAT --to 91.121.155.43
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j SNAT --to 91.121.155.43
# FORWARDING 1 PORT: 2302 ARMA 3 GAME SERVER PORT
post-up iptables -A INPUT -d 91.121.155.43/32 -p udp -m state --state NEW --dport 2302 -i vmbr0 -j ACCEPT
post-up iptables -A OUTPUT -d 91.121.155.43/32 -p udp -m state --state NEW,RELATED,ESTABLISHED --dport 2302 -j ACCEPT
post-up iptables -t nat -A PREROUTING -d 91.121.155.43/32 -i vmbr0 -p udp --dport 2302 -j DNAT --to-destination 192.168.0.1:2302
post-down iptables -t nat -D PREROUTING -d 91.121.155.43/32 -i vmbr0 -p udp --dport 2302 -j DNAT --to-destination 192.168.0.1:2302
# FORWARDING 2 PORT: 3389 Remote desktop port, thanks to nemesiz
post-up iptables -t nat -A PREROUTING -d 91.121.155.43/32 -i vmbr0 -p tcp -m tcp --sport 1024:65535 --dport 3389 --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DNAT --to-destination 192.168.0.1:3389
can anyone help me? im really struggling to do this.
Thanks everyone.