Results 1 to 3 of 3

Thread: Allow a range of ports in ufw

  1. #1

    Allow a range of ports in ufw

    Is it possible to allow a range of ports in ufw

    The server guide for 8.04 shows the allow command as

    sudo ufw allow xxxx

    I would like to allow ports 2302 to 2400 with out entering each one individually.

  2. #2
    Join Date
    Dec 2006
    Location
    Oregon, US
    Beans
    1,541
    Distro
    Ubuntu Development Release

    Re: Allow a range of ports in ufw

    Code:
    ufw allow|deny [proto <protocol>] [from <address> [port <port>]] [to <address> [port <port>]]
    https://wiki.ubuntu.com/UbuntuFirewa...ne%20Interface

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego
    Beans
    182
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Allow a range of ports in ufw

    Quote Originally Posted by Dangerousdave26 View Post
    Is it possible to allow a range of ports in ufw

    The server guide for 8.04 shows the allow command as

    sudo ufw allow xxxx

    I would like to allow ports 2302 to 2400 with out entering each one individually.
    Code:
    ufw allow proto tcp to any port 2302:2400
    Site | My PHP Framework
    "…the Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it." -Linus Torvalds

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
  •