Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At home, with both ip v4 and v6. For any device exposed on the Internet, I add a static IPv6 address with the host part the same as the IPv4 adress.

example: 2001:db8::192.168.0.42

This makes it very easy to remember, correlate and firewall.



Ok, that parses somehow in Python, matches, and is apparently legit. ;-)

    >>> from ipaddress import IPv6Address as address
    >>> address('2001:db8::192.168.0.42')
    IPv6Address('2001:db8::c0a8:2a')
    >>> int('2a', 16)
    42
Openwrt doesn't seem to make ipv6 static assignment easy unfortunately.


Oh yes, it is part of the spec for IPv6 addresses text representation :)

https://www.rfc-editor.org/rfc/rfc4291#section-2.2




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: