How to block a program from using IPv4?
- by Ian Boyd
I have a program that can communicate over IPv4 (TCP and UDP) and over IPv6 (TCP and UDP). I want to block the program from being able to use IPv4.
I tried the Windows Firewall:
Except it blocks IP sub-protocols (e.g. TCP, UDP, encapsulated IPv6, GRE), rather than blocking IPv4 itself.
In other words, I need to block IPv4:
IPv4/TCP
IPv4/UDP
IPv4/ICMPv4
IPv4/GRE
IPv4/L2TP
while allowing IPv6:
IPv6/TCP
IPv6/UDP
IPv6/ICMPv6
IPv6/GRE
IPv6/L2TP
Can I block a program from using IPv4?
Note: If it cannot be done, then don't be afraid to add that as an answer. There's no shame in giving the correct answer to a question.