mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-03 01:34:55 +02:00
Legacy firewall migrate routines and export fw rules.
This commit is contained in:
parent
de073a4795
commit
b6a7cdaac9
14 changed files with 406 additions and 112 deletions
|
@ -142,8 +142,6 @@ class FirewallSettingsForm(forms.ModelForm):
|
|||
if not interface.startswith('wg') and interface != 'lo':
|
||||
interface_choices.append((interface, interface))
|
||||
|
||||
#if interface.startswith('wg'):
|
||||
# list_network_interfaces().remove(interface)
|
||||
default_forward_policy = forms.ChoiceField(label='Default Forward Policy', choices=[('accept', 'ACCEPT'), ('reject', 'REJECT'), ('drop', 'DROP')], initial='accept')
|
||||
allow_peer_to_peer = forms.BooleanField(label='Allow Peer to Peer', required=False)
|
||||
allow_instance_to_instance = forms.BooleanField(label='Allow Instance to Instance', required=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue