Results 1 to 3 of 3

Thread: newbie ufw question: specificity interface ip ranges and port/proto

  1. #1
    Join Date
    Feb 2016
    Beans
    6

    newbie ufw question: specificity interface ip ranges and port/proto

    hello guys:

    i have a system with multiple interfaces and tried to set up a rule that specifies interface, ip range, port/proto.

    user@home:~$ sudo ufw allow in on eth1 to 192.168.0.10 from 192.168.0.0/24 to any port 22 proto tcp
    ERROR: Improper rule syntax

    checked manual for ufw but still not able to figure out

    _dave

  2. #2
    Join Date
    Feb 2016
    Beans
    6

    Re: newbie ufw question: specificity interface ip ranges and port/proto

    never mind. i used this command and it worked:

    sudo ufw allow in on eth1 from 192.168.0.0/24 to any port 22 proto tcp

  3. #3
    Join Date
    Feb 2010
    Location
    South of the Maple Trees
    Beans
    Hidden!
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: newbie ufw question: specificity interface ip ranges and port/proto

    Cool that you figured it out. If your install has a desktop, the GUFW offers a GUI interface for setting up rules.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •