On Fri, 02 Apr 2010 04:55:59 +0100, Mark Hobley wrote:
> Owner <(E-Mail Removed)> wrote:
>> How do I open port for battle.net with iptables. port 4000 TCP,UDP in
>> and out
>> port 6113-6119 TCP,UDP in and out
my fault that correct open ports needed are 6112-6119
> Are you forwarding to the battlenet server, or does it run on the same
> machine as iptables?
forwarding to the battle.net server
> Basically, you need to either accept traffic for those ports on the
> input chain or forward the traffic to the destination server (via the
> forward chain).
>
> To accept traffic on the input chain:
>
> iptables -A INPUT -p tcp --dport 4000 -jACCEPT iptables -A INPUT -p udp
> --dport 4000 -jACCEPT
>
> (Do the same for ports 6113-6119)
>
> If you are blocking outbound traffic you need to also apply the rules to
> the output chain, or again forward to output (if you are forwarding).
>
> These rules must be above the blocking rules in the chain (ie, you must
> accept before you block).
>
> Mark.
|