Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have had a BungeeCord server set up before and I know how it works. The problem I am having is with my iptables configuration. These are my iptables rules:

#!/bin/sh

#INPUT
iptables -P INPUT DROP
iptables -A INPUT -i eth0 -p tcp --dport 25565 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 25566 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT

#FORWARD
iptables -P FORWARD DROP

#OUTPUT
iptables -P OUTPUT DROP
iptables -A OUTPUT -o eth0 -p tcp --sport 25565 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -o eth0 -p tcp --sport 25566 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -m conntrack --ctstate NEW,ESTABLISHED,RELATED -j ACCEPT

Now, I opened the ports 25565 and 25566 because my BungeeCord server and Lobby server are running on those ports. I cannot connect to my server with the default policies for INPUT and OUTPUT as DROP but I can if I set the policies to ACCEPT. The error message I get is this:

Could not connect to default server, please try again later: io.netty.channel.ConnectTimeoutException

I know the ports 25565 and 25566 are opened correctly because if I run the Lobby server on 25565 I can connect.

My question is this: What iptables rule do I need to add to make the server function properly with BungeeCord? Could it be that I need to increase the timeout of the server?

share|improve this question
    
I am assuming this is all run on one machine or is each server on separate machine? Im working to a very similar setup. Maybe I can help. –  another server owner Jan 25 at 1:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.