Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

support interface #46

Open
mark-agillic opened this issue Aug 19, 2015 · 3 comments
Open

support interface #46

mark-agillic opened this issue Aug 19, 2015 · 3 comments
Milestone

Comments

@mark-agillic
Copy link

mark-agillic commented Aug 19, 2015

It would be really if it was possible to make rules based on the interface.

@attachmentgenie
Copy link
Owner

would you be able to give an example for that?

@mark-agillic
Copy link
Author

Sure :)

Tested with ufw 0.34, Ubuntu 14.04.

From the man page:

 ufw  [--dry-run] [rule] [delete] [insert NUM] allow|deny|reject|limit [in|out [on INTERFACE]] [log|log-all] [proto PROTOCOL] [from
       ADDRESS [port PORT]] [to ADDRESS [port PORT]]

Example:
ufw allow in on eth1 proto tcp from any port 443

Status output afterwards:

# ufw status
Status: active

To                         Action      From
--                         ------      ----
Anywhere on eth1           ALLOW       443/tcp
Anywhere (v6) on eth1      ALLOW       443/tcp (v6)

Example:
ufw allow in on eth0

Status output afterwards:

# ufw status
Status: active

To                         Action      From
--                         ------      ----
Anywhere on eth0           ALLOW       Anywhere
Anywhere (v6) on eth0      ALLOW       Anywhere (v6)

For me the feature would be really useful, especially when defining the rules from hiera.

@attachmentgenie attachmentgenie added this to the 2.0.0 milestone Aug 19, 2016
@attachmentgenie attachmentgenie modified the milestones: 2.1, 2.0.0 Sep 16, 2016
@schkovich
Copy link

Is there are PR for this one? I would be glad to help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants