Hi,
Given the pf.conf below - how can I make it so that any traffic from my Playstation 4 has priority over any other hosts on the network.
I'm finding that when we use Netflix the PS4 suffers with online game play.
Thanks
netsick
Given the pf.conf below - how can I make it so that any traffic from my Playstation 4 has priority over any other hosts on the network.
I'm finding that when we use Netflix the PS4 suffers with online game play.
Code:
ext_if="tun0"
int_if="msk0"
localnet=$int_if:network
netflixhost="10.0.0.24"
ps4="10.0.0.40"
siq="10.0.0.6"
table <sshguard> persist
set loginterface $ext_if
set block-policy return
set skip on lo0
scrub in all
#my ADSL speed in kbps and Kbs
#speed = 8,192kbps/384kbps
#speed = 1024Kbs/48KBs
nat on $ext_if from $localnet to any -> ($ext_if) static-port
rdr-anchor "miniupnpd"
rdr on $ext_if proto { tcp, udp } from any to any port 38651:38657 -> $siq
rdr on $ext_if proto { tcp, udp } from any to any port 57293 -> $siq port 57293
rdr on $ext_if proto { tcp, udp } from any to any port 81 -> $siq port 32400
rdr on $ext_if proto { tcp, udp } from any to any port 465 -> $ps4 port 465
rdr on $ext_if proto { tcp, udp } from any to any port 983 -> $ps4 port 983
rdr on $ext_if proto { tcp, udp } from any to any port 1935 -> $ps4 port 1935
rdr on $ext_if proto { tcp, udp } from any to any port 3478:3480 -> $ps4
rdr on $ext_if proto { tcp, udp } from any to any port 3658 -> $ps4 port 3658
rdr on $ext_if proto { tcp, udp } from any to any port 5223 -> $ps4 port 5223
rdr on $ext_if proto { tcp, udp } from any to any port 9293 -> $ps4 port 9293
rdr on $ext_if proto { tcp, udp } from any to any port 10070:10080 -> $ps4
antispoof for ($ext_if)
antispoof for $int_if
anchor "miniupnpd"
#block in log all
block in log quick on $ext_if proto tcp from <sshguard> to any port 22 label "ssh bruteforce"
#block various ports from being opened on tun0 and then allow them for internal network
block in proto { tcp, udp } from any to any port { 123, 3333, 3306, 5555, 3128 }
pass in proto { tcp, udp } from { 127.0.0.1, 10.0.0.0/24 } to any port { 123, 5555, 3128, 3333, 3306 }
pass inet from { lo0, $localnet } to any
pass out on $ext_if all
Thanks
netsick
Last edited by a moderator: