Tag Info

New answers tagged

1

Allright, I think this might work for you - assuming you have awk installed and the ip addresses are in ip.txt: cat ip.txt | awk 'BEGIN { FS = "." } ; { printf("%s.%s.%s\n%s.%s.%s.%s\n", $1, $2, $3, $1, $2, $3, $4) }' | sort | uniq -c | sort -rn A little explanation: cat prints the file awk splits the ip addresses in 4 variables and prints both the /24 ...


0

IPv6 Prefix 2001:1:a481:300::/56 if you have 56 prefix it would be nicer to include zeroes completed prefix looks like this: 2001:0001:a481:0300:0000:0000:0000:0000/56 now we can see the prefix 2001:0001:a481:0300:0000:0000:0000:0000/56 In IPv6 the smallest subnet size (prefix) is 64; so you have 8 more bits to create subnets (2 zeros ...


0

Rather then trying to block on the NAT table try FORWARD table. iptables -A FORWARD --src 10.8.0.0/24 -p udp --destination-port 63210 -j ACCEPT iptables -A FORWARD -p udp --destination-port 63210 -j DROP This will accept the packets for your lan, and drop everything else (for this port) which are being forwarded through the router - even if NAT ...


1

Yes it would, sort of, but for a few £/$/€ you could buy a second network card for your server/router and do it right. In either case, though, you will need to set the server/router as the default gateway for your other devices, and MASQUERADE (SNAT) all traffic heading out from your server/router to the rest of the world.


1

The solution is to set WiFi router as a bridge, IF it is connected to the other router. Most routers can let you configure it so it connects the wireless into an existing network instead of creating its own subnet. Specify which router is connected to which via the WAN/LAN ports in the back. One of the router must have its WAN connection plugged into ...


0

DNS only resolves names to IP addresses. Create the DNS record pointing to your public IP. Then you'll have to use your router to route port 64738 to the raspberry pi.


1

IP address slash notation and subnet masks and be confusing, but thanks to online calculators like this, you can easily experiment. This should work: 115.93.128.0/17 Note the range would be from 115.93.128.1 to 115.93.255.254 since there is no 0 network address and 115.93.255.255 is reserved for the broadcast address. The netmask would be 255.255.128.0. ...



Top 50 recent answers are included