Skip to content

Cannot add firewall rules on ovpn interface #235

@nopsecfr

Description

@nopsecfr

Hi,

Actually, i can set firewall rules on "normal" interfaces like wan, lan, optX... BUT fails when apply the same rules on my openvpn interface...

Litteral rule: "Accept all from any to any"

Datas sent for my opt1 interface (aka WORKSTATIONS):
{'client-id': 'admin', 'client-token': 'pfsense', 'type': 'pass', 'interface': 'WORKSTATION', 'ipprotocol': 'inet', 'protocol': 'any', 'src': 'any', 'srcport': 'any', 'dst': 'any', 'dstport': 'any', 'descr': 'Allow all from CLIENT', 'top': True, 'apply': True}

Result:
{'status': 'ok', 'code': 200, 'return': 0, 'message': 'Success', 'data': {'type': 'pass', 'interface': 'opt1', 'ipprotocol': 'inet', 'source': {'any': ''}, 'destination': {'any': ''}, 'descr': 'Allow all from CLIENT', 'tracker': 1653314302, 'created': {'time': 1653314302, 'username': 'admin@192.168.200.160 (API)'}, 'updated': {'time': 1653314302, 'username': 'admin@192.168.200.160 (API)'}}}

The same datas sent for my OpenVpn interface:

{'client-id': 'admin', 'client-token': 'pfsense', 'type': 'pass', 'interface': 'OPENVPN', 'ipprotocol': 'inet', 'protocol': 'any', 'src': 'any', 'srcport': 'any', 'dst': 'any', 'dstport': 'any', 'descr': 'Allow all from OpenVpn', 'top': True, 'apply': True}

Result:
{'status': 'bad request', 'code': 400, 'return': 4034, 'message': 'Firewall rule interface required', 'data': []}

The only difference i saw as user: OpenVpn interface is not directly visible from Interface dropdown menu:

interfaces

But, is visible in Firewall --> Rules

firewall

Adding this rule manually works.

Thanks

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions