Crazy routing

I have 10.0.0.0/8 network with a server within. I need it to be shown for clients as Internet-server. Don’t even ask why - I have a reason :slight_smile:

What I do. I give an address, f.e. 1.1.1.1/30 to router and 1.1.1.2/30 to server. For clever boys which can understand that something is wrong I make policy routing and direct all icmp packets for that subnet through my gateway, so ping and treacroute work as it is in the inet. But that works only for 1.1.1.2 address, not for 1.1.1.0, 1.1.1.2, 1.1.1.3. How can I solve this problem?

Alright.. Here is your solution…

The problem is with your /30

/30 => 255.255.255.252 => 0.0.0.3 (reverse mask)

With this subnet you are steping on your self.

The reason that 1.1.1.2 works is because the corosponding addresses 1.1.1.0 is your network 1.1.1.1 is your gateway and 1.1.1.3 is your broadcast.

You can either change your subnet to /32 =>255.255.255.255 or change your IP’s to the following:

1.1.1.0 => 1.1.1.6
1.1.1.1 => 1.1.1.10
1.1.1.3 => 1.1.1.14