PFServices allow you to replace the forwarding rules of nftables or iptables, and configure application-level and packet-filter rules from Vela.
| Note |
|---|
|
The PFService class transfers packet-filter level services. |
| Example 5.37. PFService example |
|---|
|
The following packet-filtering service transfers TCP connections
that arrive to port PFService(name="intranet_PF5555_internet", router=TransparentRouter()) The following example defines a few classes: the client and server zones, a simple services, and a rule that starts the service. Zone('internet', ['0.0.0.0/0'])
Zone('intranet', ['192.168.0.0/16'])
def demo() :
PFService(name="intranet_PF5555_internet", router=TransparentRouter())
Rule(dst_port=5555,
src_zone='intranet',
dst_zone='internet',
service='PFService'
)
|
Copyright: © 2021 Balasys IT Security
Send your comments to support@balasys.hu


