WIP: openvpn

This commit is contained in:
Maurice
2025-09-23 20:55:46 +02:00
parent edf4b2c03f
commit c49ffa1769
14 changed files with 59 additions and 12 deletions

View File

@@ -1,11 +1,16 @@
{
"description": "Restrict all internet access",
"variable": { "internet_if": "eth0" },
"zone": {
"internet": { "iface": "$internet_if" }
"WAN": { "iface": "eth0" },
"LAN": { "iface": "eth1" },
"VPN": { "iface": "tun+" }
},
"policy": [
{ "in": "internet", "action": "drop" },
{ "in": "VPN", "action": "accept" },
{ "out": "VPN", "action": "accept" },
{ "in": "LAN", "action": "accept" },
{ "out": "LAN", "action": "accept" },
{ "in": "WAN", "action": "drop" },
{ "action": "reject" }
]
}

View File

@@ -2,7 +2,8 @@
"description": "Allow ping-pong",
"filter": [
{
"in": "internet",
"in": "WAN",
"out": "_fw",
"service": "ping",
"action": "accept",
"flow-limit": { "count": 10, "interval": 6 }

View File

@@ -3,7 +3,7 @@
"filter": [
{
"in": "_fw",
"out": "internet",
"out": "WAN",
"service": ["http", "https", "dns", "ssh", "ntp", "ping"],
"action": "accept"
}