Failed To Connect, + ping for all servers is 0... RRR?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ivj

    #1

    Failed To Connect, + ping for all servers is 0... RRR?

    I have no problem running BF2 in single player. However, when I try to go to multiplayer, the server list starts refreshing. All the servers have pings 0.

    Ok whatever, I look at a server - I can see all the info - how many players are playing, their names, etc. If I try to connect, it says "joining..." and then it goes back to the server list and says "failed to connect. Please check your connection(s) and try again." or something like that.

    I had that same problem back when they only had the demo version.

    Now, a bit of my background. I'm a software developer who specializes in networking and I currently work as a Linux admin and I do freelance programming on the side.

    On my home network, the cable modem connects to my Linux machine (fedora 4), which's using iptable masquarade for the internal network. Tha, in turn, connects to my windows computer where I try to run Br2.

    I have NO problems whatsoever running any other online game from that same windows machine. Counterstrike, Civ 3 online, Rise of Nations, Starcraft, you name it. NEVER had a problem. I never have a problem hosting a server (all I have to do is add a -j DNAT xx.xx.xx.xx in the iptbales).

    I have no idea why the hell I can't get this game to run. I want to play it online so much. I have to admit I'm not an expert in iptables, so maybe I'm doing something wrong... Basically, I've tried adding DNAT forwards directly to my computer for all the ports that the manual mentions - didn't do anything (except when I try to forward --dports - then I can't even see the server list...)...

    As a side note, the firewall on my Windows machine is disabled (SP2).

    Here's my default iptables... Please someone, help me out! (EA support is 100% uselss here)

    # Firewall configuration written by system-config-securitylevel
    # Manual customization of this file is not recommended.
    *nat
    :PREROUTING ACCEPT [0:0]
    :POSTROUTING ACCEPT [0:0]
    :OUTPUT ACCEPT [1:69]


    # Temp port 80 forward
    -A PREROUTING -p tcp --dport 80 -i eth0 -j DNAT --to 192.168.0.33:80

    # Azeureus
    -A PREROUTING -p tcp -i eth0 --dport 6881 -j DNAT --to 192.168.0.16:6881

    -A POSTROUTING -s 192.168.0.0/24 -d 0/0 -o eth0 -j MASQUERADE
    COMMIT
    #
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    :RH-Firewall-1-INPUT - [0:0]
    #
    -A INPUT -j RH-Firewall-1-INPUT
    -A FORWARD -j RH-Firewall-1-INPUT
    #
    -A RH-Firewall-1-INPUT -i lo -j ACCEPT
    -A RH-Firewall-1-INPUT -p udp -m udp -s 0/0 --sport 67:68 -d 0/0 --dport 67:68 -i eth0 -j ACCEPT
    -A RH-Firewall-1-INPUT -p udp -m udp -s 0/0 --sport 67:68 -d 0/0 --dport 67:68 -i eth1 -j ACCEPT
    #
    -A RH-Firewall-1-INPUT -p tcp -s 192.168.0.0/24 -d 0/0 -i eth1 -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp -s 63.231.0.0/24 -d 0/0 -i eth0 -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp -s 209.221.182.0/24 -d 0/0 -i eth0 -j ACCEPT
    #
    -A RH-Firewall-1-INPUT -p tcp -m tcp --dport http --syn -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp -m tcp --dport https --syn -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 6881 --syn -j ACCEPT
    #
    -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
    -A RH-Firewall-1-INPUT -p 50 -j ACCEPT
    -A RH-Firewall-1-INPUT -p 51 -j ACCEPT
    -A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
    -A RH-Firewall-1-INPUT -p udp --dport 53 -i eth1 -j ACCEPT
    -A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
    COMMIT
    # Completed on Sun Jun 19 01:40:00 2005
  • Gunny Highway

    #2
    Re: Failed To Connect, + ping for all servers is 0... RRR?

    -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
    -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
    I'm not that familiar with Linux configurations but these two lines with ICMP would be my guess.

    1st line accepts all ICMP types as I see it.
    The 2nd line quoted here rejects/prohibits some ICMP but without knowing Linux I can't tell which, but maybe that is the problem as if some ICMP traffic is blocked it can't ping and maybe that is why 0 pings appear. Again forgive me if I misinterpreted the config :hmm:

    Comment

    Working...