Results 1 to 5 of 5

Thread: ufw: firewalling a v6 subnet

  1. #1
    Join Date
    May 2005
    Location
    Enschede, The Netherlands
    Beans
    24
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Question ufw: firewalling a v6 subnet

    Hey everyone,

    I recently got a v6 tunnel from my provider and currently ufw is firewalling the endpoint just fine.

    However, with the tunnel came a v6 subnet that radvd is announcing to my network and my clients have picked up on and are using. Some of those clients are laptops and desktops that run their own firewalls and are pretty safe as is, others like phones and tablets I'm not so sure about.

    To this end I'd like to use ufw to block incoming connections to the subnet (that don't already have an outgoing connection) in order to shield most of the more "stupid" clients.

    Anyone got an idea as to how to decently to this in ufw?

  2. #2
    Join Date
    Feb 2010
    Location
    In My Food Forest
    Beans
    9,318

    Re: ufw: firewalling a v6 subnet

    Do you mean IPv6?
    Cheers & Beers, uRock
    [SIGPIC][/SIGPIC]

  3. #3
    Join Date
    May 2005
    Location
    Enschede, The Netherlands
    Beans
    24
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: ufw: firewalling a v6 subnet

    Yes. Sorry for the confusion, IPv6 is always shortened to v6 in my head.

  4. #4
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,958
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: ufw: firewalling a v6 subnet

    This is kind of going to answer your question -- and kind of not since it deals with iptables directly -- not through ufw. But to block all ipv6 connections it would be something like this:

    IP6TABLES=/sbin/ip6tables

    $IP6TABLES -P INPUT DROP
    $IP6TABLES -P OUTPUT DROP
    $IP6TABLES -P FORWARD DROP

  5. #5
    Join Date
    May 2005
    Location
    Enschede, The Netherlands
    Beans
    24
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: ufw: firewalling a v6 subnet

    I'm aware of how to do it in iptables but I was rather hoping I could stop using my firewallv6.sh.

    It seems ufw doesn't really cater for this right now, I'll see if I can get upstream to do something about that.

    Thanks for the reply though

Tags for this Thread

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
  •