This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DirectX

I am trying to run DirectX games (Both server and client)  but cannot seem to get the port forwarding correct.  I've tried DNAT and SNAT as well as packet filtering.  Has anyone had any success with this?


This thread was automatically locked due to age.
Parents
  • Port 2300-2400 -> 10.10.10.2 port 2300 tcp/udp
    Port 47624 -> 10.10.10.2 port 47624 tcp

    Remember that you have to create DNAT + Rules.
    Works great...tested with Rally Masters!

    B
  • I'll give that a try thanx
  • Could you post your rules and DNAT set up for this?  I forwarded the ports in my rules as per Microsoft TechNet and added in the DNAT in to my computer should I add SNAT out?
  • Using DirectX 7 method:
    Connection Ports for Client Configuration Ports for Host Configuration 
    Initial TCP Connection 47624 Outbound 47624 Inbound 
    Subsequent TCP Inbound 2300-2400 2300-2400 
    Subsequent TCP Outbound 2300-2400 2300-2400 
    Subsequent UDP Inbound 2300-2400 2300-2400 
    Subsequent UDP Outbound 2300-2400 2300-2400 
    -------------------------------------------------
    Using DirectX 8 method:
    Connection Ports for Client Configuration Ports for Host Configuration 
    Initial UDP Connection  6073 Outbound 6073 Inbound 
    Subsequent UDP Inbound 2302-2400 2302-2400 
    Subsequent UDP Outbound 2302-2400 2302-2400
    -------------------------------------------------

    Maybe , if you dont have already...make a rule for test purposes. 
    (insidenetwork ->any ->any ->allow)

    If it still dont works look at the Packetfilterlivelog...maybe you see a hint there.

    B
  • Sorry...

    no you dont need SNAT.
    Just Masquerading for your intern network on the external interface.

    B
  • Here's what I did

    DirectX7tcp47624 tcp 1024:65535 47624 
    DirectX8udp6073 udp 1024:65535 6073 
    DirectX_2300-2400 tcp/udp 1024:65535 2300:2400 

    then I made these all part of a service group called DirectX

    eth0_Network__ { DirectX8 } Any Allow 
    Any { DirectX8 } eth0_Network__ Allow 

    I still get inbound UDP on port 2301 droped
  • I also have my lan Masquraded

    LAN_Masq   eth0_Network__ -> All / All   MASQ__WAN_Connection
     
     [size="1"][ 18 December 2002, 18:54: Message edited by: Talbot ][/size]
  • 2301 dropped ? Weird.
    I been trying to get this to work as well but without much luck.  I'm running ASL and my friends are running lame smoothwall.
    Ok mebbe not lame, simple...
  • Just a bump, maybe one of the dev's could help.
Reply Children
  • ehem...did you forgot to forward the ports with DNAT maybe??
    You need DNAT + Rules !

    B
  • as I said I have the DNAT and the rules, but still having problems
  • DNAT + Rule only to one internal host ?
    Because you posted something with eth0_network ! 

    Hm, it worked fine here earlier but i dont play that much games at the moment...if i find time i can try again.

    B
  • I got it working the trick was my rules.

    Any { DirectX8 } WAN_Connection_Interface__ Allow 
    Mithrandir { DirectX8 } Any Allow 

    DirectX_1   All -> WAN_Connection_Interface__ / DirectX7tcp47624   None   Mithrandir 
     DirectX_2   All -> WAN_Connection_Interface__ / DirectX8udp6073   None   Mithrandir 
     DirectX_3   All -> WAN_Connection_Interface__ / DirectX_2300-2400   None   Mithrandir 

    DirectX7tcp47624 tcp 1024:65535 47624 
    DirectX8udp6073 udp 1024:65535 6073 
    DirectX_2300-2400 tcp/udp 1024:65535 2300:2400
  • Hi there.

    Funny you should post this today becuase I have just been giving the All Seeing Eye guys some stick on their forum claiming that there program uses more ports than they state in their FAQ. After seeing this I think it's DX9 that is the guilty party. No wonder I can't get games to work [:(]

    I'm new to all this and fairly chuffed I've actually managed to get ASL up and running, although it's taken a while. 

    The one thing I am still having problems with is online gaming though. Unless I make a general PF rule opening all ports I can't get any games to run, so if you can spare the time I'd be extremely grateful if you could explain in laymans terms what I need to do next.

    So far I have the following setup (ASE is games server software btw):

    NAT rule:
    Green_Network__ -> All / All   MASQ__Red   None 

    Services:
    ASE:        tcp/udp 27243:27245 27243:27245
    TFC:              udp 27000:27100 27000:27100
    BF1942:        udp 14550:14570 14550:14570

    I then joined them together in a group called {Games}

    Packet Filter Rules:
    Green_Network__ { Games } Any Allow 

    When I try to play I get nowhere, and the PF log shows that something is trying to get out using ports in the 4500-4800 range. I'm using DX9, so from your post I assume that it's DirectX and not ASE that is trying to use these ports.

    Do this all make sense? If you can shed any light on this I'd be very grateful, as I don't like the idea of opening up all the ports each time I want to have a bit of fun.

    Thanks in advance for your time!

    Cheers
    Sprout  
  • You will have to define NAT rules for the traffic.
    ie Any DirectX traffic, forward to internal NIC of your games box.