Skip to content

Commit 477bbf5

Browse files
Initial Rules
1 parent c8b566a commit 477bbf5

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

.github/workflows/build.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: create sample script
15+
run: |
16+
mkdir -p package
17+
# mkdir -p .debpkg/usr/lib/samplescript
18+
# echo -e "echo sample" > .debpkg/usr/bin/samplescript
19+
# chmod +x .debpkg/usr/bin/samplescript
20+
# echo -e "a=1" > .debpkg/usr/lib/samplescript/samplescript.conf
21+
22+
# # create DEBIAN directory if you want to add other pre/post scripts
23+
# mkdir -p .debpkg/DEBIAN
24+
# echo -e "echo postinst" > .debpkg/DEBIAN/postinst
25+
# chmod +x .debpkg/DEBIAN/postinst
26+
- uses: jiro4989/build-deb-action@v3
27+
with:
28+
package: ufw-applications
29+
package_root: package
30+
maintainer: ${{ github.repository_owner }}
31+
version: ${{ github.ref }} # refs/tags/v*.*.*
32+
arch: 'any'
33+
depends: 'ufw'
34+
desc: 'Extra UFW app profiles'
35+
homepage: ${{ github.server_url }}/${{ github.repository }}

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
# ufw-applications
22
Extra ufw app profiles
3+
4+
## UFW Rules
5+
6+
how to create your own application file, you only need to know that it is using windows INI file format.
7+
8+
```
9+
[appname]
10+
title=1-liner here
11+
description=a longer line here
12+
ports=1:10,30/tcp|50/udp|53
13+
```
14+
15+
The ports line can specify multiple ports, with /udp or /tcp, to limit the protocol, otherwise it defaults to both. You have to split the protocol sections up with |.

package/etc/ufw/applications.d/steam

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[steam-client]
2+
title=Steam Client
3+
description=Firewall rules for the Steam client remote play
4+
ports=27031:27036/udp|27036/tcp
5+
6+
[steam-servers]
7+
title=Steam Dedicated/Listen Servers
8+
description=Firewall rules for Steam Dedicated or Listen Servers
9+
ports=27015

0 commit comments

Comments
 (0)