I'm trying to open some port for a gameserver, which is running on my Linux vServer (Ubuntu 14.04 LTS 64bit). According to the WIKI the game communicates through the following ports:
Code:
16261 (UDP)
16262 (TCP) // Player 1
16263 (TCP) // Player 2
16264 (TCP) // Player 3
16265 (TCP) // Player 4
// ...
Since I'm not really experienced with Linux, I searched for some ways to open ports on Ubuntu. I followed these steps and entered the following commands:
Code:
iptables -I INPUT -p udp --dport 16261 -j ACCEPT
iptables -I INPUT -p tcp --dport 16262 -j ACCEPT
To make sure that it worked I checked iptables with "iptables -L" and got a list like that:
Code:
Chain INPUT (policy DROP)
num target prot opt source destination
1 ACCEPT tcp -- anywhere anywhere tcp dpt:16262
2 ACCEPT udp -- anywhere anywhere udp dpt:16261
3 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
4 REJECT tcp -- anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW reject-with tcp-reset
5 DROP all -- anywhere anywhere state INVALID
6 ACCEPT all -- anywhere anywhere
7 ACCEPT tcp -- anywhere anywhere tcp dpt:8443
8 ACCEPT tcp -- anywhere anywhere tcp dpt:8880
9 ACCEPT tcp -- anywhere anywhere tcp dpt:http
10 ACCEPT tcp -- anywhere anywhere tcp dpt:https
11 ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
12 ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
13 ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
14 ACCEPT tcp -- anywhere anywhere tcp dpt:urd
15 ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
16 ACCEPT tcp -- anywhere anywhere tcp dpt:pop3s
17 ACCEPT tcp -- anywhere anywhere tcp dpt:imap2
18 ACCEPT tcp -- anywhere anywhere tcp dpt:imaps
19 ACCEPT tcp -- anywhere anywhere tcp dpt:poppassd
20 DROP tcp -- anywhere anywhere tcp dpt:mysql
21 ACCEPT tcp -- anywhere anywhere tcp dpt:postgresql
22 ACCEPT tcp -- anywhere anywhere tcp dpt:9008
23 ACCEPT tcp -- anywhere anywhere tcp dpt:9080
24 ACCEPT udp -- anywhere anywhere udp dpt:netbios-ns
25 ACCEPT udp -- anywhere anywhere udp dpt:netbios-dgm
26 ACCEPT tcp -- anywhere anywhere tcp dpt:netbios-ssn
27 ACCEPT tcp -- anywhere anywhere tcp dpt:microsoft-ds
28 ACCEPT udp -- anywhere anywhere udp dpt:openvpn
29 DROP udp -- anywhere anywhere udp dpt:domain
30 DROP tcp -- anywhere anywhere tcp dpt:domain
31 ACCEPT icmp -- anywhere anywhere icmptype 8 code 0
32 ACCEPT all -- anywhere anywhere
The two new entries are in fact in the list, but when I checked to see if the two ports are open it said that both ports (16261/26262) are still closed. If I use "netstat -ntulp" the ports also don't shop up. What am I doing wrong? A Teamspeak 3 and CS:GO server are already running without problems...
Bookmarks