shinebayar-g / ufw-docker-automated

Manage docker containers firewall with UFW!
Apache License 2.0
198 stars 31 forks source link

UFW Rule for network interface name #52

Open kforeverisback opened 1 year ago

kforeverisback commented 1 year ago

Feature request:

Add support for network interface name: Example ufw rule: ufw route allow in on eth0 proto tcp to 192.168.151.3 port 80

We can reuse the environment variable UFW_ALLOW_FROM value to detect if an IP address is specified (using regex) or a network interface name (string).