mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Add firewall zone selection for networks.
This commit is contained in:
1 parent
f0c5cd080c
commit
45086ff003
3 files changed
+34
-9
No files matched your search
@@ -31,6 +31,9 @@ class ConnectionTypeSelectForm(forms.Form):
|
||||
class AddEthernetForm(forms.Form):
|
||||
"""Form to create a new ethernet connection."""
|
||||
name = forms.CharField(label=_('Connection Name'))
|
||||
zone = forms.ChoiceField(
|
||||
label=_('Firewall Zone'),
|
||||
choices=[('external', 'External'), ('internal', 'Internal')])
|
||||
ipv4_method = forms.ChoiceField(
|
||||
label=_('IPv4 Addressing Method'),
|
||||
choices=[('auto', 'Automatic (DHCP)'), ('manual', 'Manual')])
|
||||
@@ -40,6 +43,9 @@ class AddEthernetForm(forms.Form):
|
||||
class AddWifiForm(forms.Form):
|
||||
"""Form to create a new wifi connection."""
|
||||
name = forms.CharField(label=_('Connection Name'))
|
||||
zone = forms.ChoiceField(
|
||||
label=_('Firewall Zone'),
|
||||
choices=[('external', 'External'), ('internal', 'Internal')])
|
||||
ssid = forms.CharField(label=_('SSID'))
|
||||
auth_mode = forms.ChoiceField(
|
||||
label=_('Authentication Mode'),
|
||||
|
||||
Reference in new issue
Block a user