Menu

Random Source Addresses per Request from a /64 in Python, on Your Free IPv6 /48
📰

Random Source Addresses per Request from a /64 in Python, on Your Free IPv6 /48

DEV Community: python·IPYE·about 8 hours ago
#cu6rAoA9
#devtopython#devto#dev#socket#ipye
Long article (925 words) — no AI summary yet.
Reading 0:00
15s threshold

Disclosure up front: I run IPYE, a company that leases IP space. This is a practical how-to, and IPYE comes up where it helps, with a short call to action at the end.

Linux can send traffic from any address in a routed IPv6 prefix without configuring each address one by one, thanks to the AnyIP local route and the IP_FREEBIND socket option. Combine that with a few lines of Python, and each request can use a different source address. That's useful for testing rate limiters, spreading crawler load across subnets, or simply keeping workers separate. This guide sets it up with a free IPv6 /48 from IPYE .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.