 timcuthBraves FanPremium join:2000-09-18 Pelham, AL Reviews:
·AT&T Southeast
2 edits | [Solved] IPv6-specific firewall rule I created a firewall rule for my ssh server: "ufw allow xxxx/tcp", where xxxx is the port number of my ssh server. It worked just fine for IPv4 and IPv6, but it allowed access from anywhere.
I wanted access to be allowed only within my LAN. So, "ufw allow from 192.168.1.0/24 proto tcp to any port xxxx" worked just fine for IPv4, but it does not handle IPv6.
How would I do an analogous command for IPv6? Would it be something like "ufw allow from aaaa:bbbb:cccc:dddd::/64 proto tcp to any port xxxx"? Or something else entirely?
Tim
PS - If you speculate that I am completely ignorant about this subject, you wouldn't be far wrong.
-- "Life is like this long line, except at the end there ain't no merry-go-round." - Arthur on The King of Queens ~ Project Hope ~ |
|
|
|
 CabalPremium join:2007-01-21 Austin, TX Reviews:
·Suddenlink
| Re: IPv6-specific firewall rule That is correct*, assuming you're working with a /64, and not something larger and want to include it (/48 from HE.net, etc). You are most likely working with a /64, though.
* I don't know anything about ufw syntax, but that's how you'd do it any firewall I'm familiar with. -- If you can't open it, you don't own it. |
|
 timcuthBraves FanPremium join:2000-09-18 Pelham, AL | reply to timcuth Thank you very much, Cabal .
Tim |
|