É

Éric Leblond

home.regit.org · Personal blog · on HN since 2008

Éric Leblond, a Linux network and security developer who writes about nftables, Netfilter, IPv6 privacy, IDS and the Coccinelle code tool.

What HN saysCommenters use his guides for setting up nftables, such as port knocking and quick-start configs, and for enabling IPv6 privacy extensions.
16HN people shared it
8linked it in comments
8stories submitted
78story points
2 years agolast shared
2008people per year2026

Most-shared posts

  1. 1
    Ipv6 privacy
    3 people · first shared 2014
  2. 2
    Why you will love nftables
    2 people · 70 points · first shared 2014 · 24 comments on HN
  3. 3
    Nftables quick how to
    2 people · 1 points · first shared 2013 · discussion on HN
  4. 4
  5. 5
    Investigation on an attack tool used in China
    1 people · 2 points · first shared 2014 · discussion on HN
  6. 6
    Using NFQUEUE and libnetfilter_queue
    1 people · 1 points · first shared 2017 · discussion on HN
  7. 7
    Running high performance IDS on a 10gbps link
    1 people · 1 points · first shared 2012 · discussion on HN
  8. 8
    Semantic grep for C code
    1 people · 1 points · first shared 2011 · discussion on HN
  9. 9
    Links load balancing
    1 people · first shared 2013
  10. 10
    Nftables port knocking
    1 people · first shared 2025
  11. 11
    Pshitt collect passwords used in ssh bruteforce
    1 people · first shared 2014
  12. 12
    Post 32
    1 people · first shared 2008

What HN people wrote when they linked it

c64d81744074dfa · 2025-01-18
Not sure if this is the best, but I use nftables and this article helped me setup port knocking on a debian server: https://home.regit.org/2017/07/nftables-port-knocking/ Then I added a tripwire feature to make it less likely that a random port traversal would be successful. Here's a snippet of my nftables.conf: define KNOCK_PORT1 = 20000 define KNOCK_PORT2 = 30000 define KNOCK_PORT3 = 10000 define TRIPWIRE_PORT1 = 15000 define TRIPWIRE_PORT2 = 25000 table inet filter { . . set allowed_ssh { type ipv4_addr flags timeout elements = { $HOME_IP, $OTHER_SERVER_IP } } # track port knocking set knock1 { type ipv4_addr timeout 5s } set knock2 { type ipv4_addr timeout 5s } set banned { type ipv4_addr timeout 1m } # handle port knocking chain raw { type filter hook prerouting priority raw; policy accept; ip saddr @banned tcp dport { $KNOCK_PORT1, $KNOCK_PORT2, $KNOCK_PORT3} log prefix "nft banned: " drop tcp dport $KNOCK_PORT1 set add ip saddr @knock1 log prefix "nft knock1: " drop ip saddr @knock1 tcp dport $TRIPWIRE_PORT1 set add ip saddr @banned log prefix "nft tripwire1: " drop ip saddr @knock1 tcp dport $KNOCK_PORT2 set add ip saddr…
kstrauser · 2020-11-05
Yep, and while I'm too lazy to dig into detailed kernel histories, that's been in there for at least 9 years now: https://home.regit.org/2011/04/ipv6-privacy/ Short version: echo "2">/proc/sys/net/ipv6/conf/eth0/use_tempaddr turns on privacy extensions on eth0, and makes them the preferred addresses.
ingenium · 2014-09-06
I had a raspberry pi on my network via ethernet and saw it had accumulated a ton of IPv6 addresses. Ended up just disabling privacy extensions on it. If your machines reset their network connection (ie wireless reconnects) then they'll flush their IPv6 privacy addresses. Your machines might just have a long timeout before they use a new privacy address. You can find more info here: https://home.regit.org/2011/04/ipv6-privacy/
welterde · 2014-01-20
Yeah.. true.. still prefer the config file format[1] nftables brings along though. [1] https://home.regit.org/netfilter-en/nftables-quick-howto/
mike-cardwell · 2013-11-30
I'm pretty sure you can do this sort of load balancing on Linux without having to install any extra software, at the IP level, with the "ip rule" and "iptables" commands. EDIT: Yep: https://home.regit.org/netfilter-en/links-load-balancing/

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close