Results 1 to 2 of 2

Thread: Allow specific TCP port to specific address from and to...

  1. #1
    Join Date
    Nov 2009
    Beans
    43
    Distro
    Ubuntu 9.10 Karmic Koala

    Allow specific TCP port to specific address from and to...

    basically what id like to do is:

    Allow The SSH port 22 TCP only accessible
    by my own ip address.

    ive tried sudo ufw allow from 22.222.2.222 to 22/tcp

    But it aint working.

    Whats the exact command for it?

    It does work when im typing:

    sudo ufw allow from 22.222.2.222 to any port 22

    But i wanna filter it by the TCP protocol aswell.

    Note: The ip above is fake but i entered it correctly.
    Last edited by Goldline; March 11th, 2010 at 08:23 PM.

  2. #2
    Join Date
    Dec 2009
    Beans
    540
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Allow specific TCP port to specific address from and to...

    Allow access to udp 1.2.3.4 port 5469 from 1.2.3.5 port 5469:

    ufw allow proto udp from 1.2.3.5 port 5469 to 1.2.3.4 port 5469
    From the ufw man page. Change udp to tcp, port number, and ip address, and give this a try. Alternatively, you can install gufw, which gives a nice user friendly frontend to ufw.

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
  •