How can I define null route on Windows Server 2008 R2 Standard?
I've tried
x.x.x.x is target ip which I'm trying to block
1.1.1.1 is non existing ip
192.168.1.1 is default gw
192.168.1.254 is non existing ip on same subnet
route add x.x.x.x mask 255.255.255.255 1.1.1.1
route add x.x.x.x mask 255.255.255.255 1.1.1.1 if 1
route add x.x.x.x mask 255.255.255.255 192.168.1.1
route add x.x.x.x mask 255.255.255.255 192.168.1.1 if 1
route add x.x.x.x mask 255.255.255.255 192.168.1.254
route add x.x.x.x mask 255.255.255.255 192.168.1.254 if 1
Nothing works. Ping is still working and other connections are still working.