Showing posts with label firewalls. Show all posts
Showing posts with label firewalls. Show all posts

Wednesday, 22 July 2020

Losing Hell

I've just bought Hell Let Loose - it's a lot of fun but very hard. However, I noticed that voice appeared to randomly work on some servers, but not others. I was watching my FW logs as I was playing the game and adding individual UDP ports in as they showed up as denied.
It seems that the initial voice packet is tried once - if it fails, then the game appears to just give up and doesn't try and send any more on some servers, others it retries on multiple ports (I will say that I haven't analysed the traffic in detail because cba, so this could be other traffic apart from VOIP wrt to retries), so it was generally just a single deny line in the logs. The servers where voice worked, happened to be on one of the ports I'd already allowed. If it didn't... well.

I ditched all the individual ports and put a range in for the game (originally the range was 27000-30000 but that wasn't enough. Edit 3: dropped initial port to 12000 and maxed 32000 as there was a UDP packet at 13950 this morning. A Vivox post below suggested 12K - 32K):

UDP: 12000 - 32000
UDP: 4350 - 4400

20K ports is a fair old range, and now edges Discord with 13,500 ports.

I will update this with a larger range as and when things break.

Note: The policies are from 'Trusted Internal' (i.e. my PC) to 'Any External', as my FW will automatically deny outgoing traffic to a random port somewhere on the internet.

Note 2: Some evidence that this may be your issue, before you try messing about with your FW policies, is if when you press the voice chat keybind, you do not see the little graphic in the bottom left that shows your active mic. It appears that the software tries to send packets before triggering the voice icon on the overlay, so if it cannot do so successfully, then the icon will fail to appear. This appeared consistent across various games when voice did/did not work. If the icon appears, this is probably not your issue.

Note 3: I did notice that my FW was also blocking some traffic due to DDoS protection features. The limits were set at 100 connections/sec (per server/per client quota). I upped this to 500, and the traffic flowed again. I have done no testing on actual rates, so 120 connections/sec might have been enough; I may revise it down when I can be arsed. 100 connections/sec is a fair number, so I was surprised this limit was reached. A note of caution: correlation is not causation, so it might have been a combo of this game and other things too, the game just pushing it over the limit.

Note 4: Even writing (Note 3) made me feel dirty, with such a profligate approach to FW settings. Turns out the traffic limits were being breached by the 'Refresh Server' button, so was fairly easy to iterate over. Reset the 'Per Server' rate limit to 100, and appear to have settled on a figure of 170 connections per second for 'Per Client' quota to stop the packets from being dropped. This makes me feel better. The fact it happens on 'Per Client' leads me to believe that it's not just the game software, but will include other background activity too; but there's no denying that it certainly bursts traffic.

Note 5: Some people have reported having a VPN solves this - this lends credence to me that the problem may lie with a user's gateway hardware firewall/router (where it comes into your house) more. If the VPN from your PC is encrypting traffic in a tunnel straight out of your network, then your hardware firewall cannot interfere with the traffic.

Note 6: This post talks about requiring ports 12000 - 32000 UDP for Vivox, but so far I haven't found any out of the range above. https://sites.google.com/site/tecolaproject/virtualworld/technical-support

Addendum:
I didn't need to check this stuff in this addendum as it seemed to work, but while fiddling about checking out Vivox, there's a customer help page on solving Vivox issues, with a whole suite of checks to run through:
with this link being the most interesting on how to disable SIP-ALG (Vivox uses SIP apparently) on your router:
Be interested to see how well it works.

Addendum 2:
This is getting silly. Many games seem to use Vivox, and thus is a SIP based service. Discord does not use SIP, it uses WebRTC, while similar to SIP, just uses whatever protocol the devs choose to deliver the data - in this case, I think Discord rolled their own delivery mechanism, so did not need to use SIP as a protocol. This means that when someone says, 'Discord works, but not this!' - they are comparing Apples to Oranges.
A number of other posts discussing fixes for SIP-based in game voice (for other games like PubG, Foxhole etc. etc.) chat seem to coalesce around disabling SIP-ALG wherever possible on hardware router/firewalls (it works like a kind of NAT, but mangles the endpoint IP address, so delivery fails. As they are all UDP packets, there is no error checking. Why not use TCP! TCP is no good for voice chat, as it takes too long due to the in-built error-checking. You just need a stream of packets as fast as possible.).

Wednesday, 10 April 2019

King of the Hill

Apex Legends.

I had to upgrade my OS for this. Had been meaning to for ages, but... reinstalling OS' are just tedious. Some friends had said it was pretty good, so thought I'd try it.

It crashed continually on Win 7 - it's 2019, it shouldn't take half an hour to get a game running any more. Turns out it was the OS. So that prompted me to finally get another SSD and rebuild.

So of course, this is another port forwarding post. :)

TCP/UDP: 1024 - 1124, 18000, 29900
TCP: 3216, 9960 - 9969, 18060, 18120, 27900, 28910, 44325
UDP: 37000 - 40000

These ports came from a port forwarding site mostly, so there might be too many. Playing the game, it only appears to use 62384 and 37005 UDP (based on a testing sample of 1 session!) :)

Monday, 31 December 2018

Party to Assassination

Another entry in the port forwarding goodness series.

Spy Party is currently in early access. I first heard about this game some years ago - I want to say 2015 - and purchased alpha/beta ccess as it seemed really interesting. Chris Hecker's games are usually worth a look, as they raise themselves above the standard fare in game design alone.

The steam spiel:

"SpyParty is a competitive espionage game about subtle human behavior. A Spy hides in plain sight at a fancy cocktail party, trying to accomplish missions while blending in with the other guests, while a Sniper with a single bullet looks inward, searching for the Spy."

In reality it's a pretty interesting take on a 2 player asymmetric game, requiring the sniper to take note of activities and goings on at a party, with the spy passing on a codeword to his contact, bugging the ambassador, swapping a statue (presumably for one with a camera in it) and seducing another party attendee. From the sniper's point of view overlooking the room, there a number of tells that may give the game away or at the very least allow the sniper to narrow down the field, all set within a time limit to up the ante for the spy. As the spy, you have your list of missions that you need to complete in as innocuous a way possible to not arouse the sniper's suspicions - completing these actions will produce an action for the sniper to observe - if they're looking in the right place. The set up allows for a complex interplay of subterfuge which can be really absorbing. If you're playing against an experience opponent however, expect to get spotted immediately or not be able to discover the spy as there are a number of ways to spoof actions and throw the scent off or disguise your sniper focus (denoted by a laser sight). By all accounts the community is pretty friendly and help is plentiful and on hand if required.

The discord server is probably your first port of call for information and advice, which can be found here: https://discord.gg/SpyParty

Meanwhile, here are the ports that you may need to open to play MP:

TCP/UDP: 88, 5000
UDP: 7000
TCP: 54784, 54998

Wednesday, 30 May 2018

Discordant Voices

Next in a slightly irregular series of port forwarding business, Discord chat is most annoying. For reasons best known to the devs, they have chosen a vast port range that voice chat is initiated on - I'm sure there is a very good reason, it's not just them being lazy. Is it?

All kudos to them though, it is one of the best pieces of software to come out in the last few years for gamers. It is pretty much essential, is free (but you can support them and you get animated emojis), and doesn't seem to want to install horrible bits of malware or steal all your data. As a bonus, the patch notes generally have a sense of humour - whilst not going to rival say, Dwarf Fortress, for silliness (which is a big ask), they are at least inventive and may crack a smile, a chance to pat yourself on the back and say, 'I got that reference!'. Top work all round.

Any road, ports required for voice are:

UDP: 50000 - 53500

Tuesday, 22 May 2018

Fortnightly, So Tightly

Following on from Rainbow 6 port discovery, I installed this the other day, and didn't like it much. But, here are the ports that I have opened to get it to work thus far:

UDP: 7862, 9003, 9005, 9013, 9016, 9017, 9022, 9033, 22222

Suspect by looking at the progression that 9000-9035 or something similar are used, but yet to see them.

Thursday, 3 May 2018

All Steamed Up


Recently I tightened up my firewall rules. A while back I got hold of a Watchguard T10, nice piece of kit for the home. Turned the wifi off, as already had some Ubiquiti kit in, and that knocks the socks off in-built router wifi, as you might expect.

With the aforesaid tightening, I expected a few teething troubles, but some have manifested in curious ways. Watchguards are good in that they are set up to default block everything incoming but also outgoing - if it doesn't use a common port (i.e. less than 1023), then it will default block outbound traffic.

Examining the logs, I found that some traffic was being blocked by the HTTP Proxy - although the traffic was going out on port 80, it was being denied with the reason: "Body content type match". A bit of research into the error found that the WG was blocking the traffic due to a strange (i.e. whichever game was trying to update) executable dialling out. This is desirable behaviour, clearly, as you don't want some sneaky virus exe dialling home to start cryptolocking all the things. That said, it took a bit of sorting out, so figured I'd write it up for the other 2 people in the world who run home T10s and play steam games.

Firstly, here are the steam ports:

TCP: 27015 - 27030
UDP: 4830, 27000 - 27030

For completeness, here's Valve's IP address space pulled from ARIN:

162.254.192.0/22
192.69.96.0/22
205.196.6.0/24
208.64.200.0/22
208.78.164.0/22
2620:f9::/44

How to fix the HTTP proxy issue:
  • Check the policy properties to see which proxy/content action the policy is using, likely to be HTTP-Client.Standard.
  • Go into Setup | Actions | Proxies
  • Scroll down the list until you see the proxy action you're interested in.
  • Edit, and select 'Body Content Types' from the menu on the left.
  • Highlight Windows EXE/DLL and ensure that 'If matched' picklist doesn't say 'Deny', 'Drop', or 'Block'. I've chosen AV scan, as I have an active subscription on the T10, but you can also choose 'Allow'.
  • OK out and save the config back.
  • Enjoy correctly updating Steam games.
Whilst I'm on it as well, here's the (full) list of ports required by Rainbox Six Siege, as the Ubi support pages don't appear to have a complete list:

TCP : 13000, 13005, 13200, 14000, 14001, 14008, 14020, 14021, 14022, 14023, 14024
UDP : 2070, 3075, 3478, 6015, 6019, 6020, 6021, 6250, 6085, 30000, 30100, 30200