Hello. I have a following problem.
I have a router with 3 interfaces and OSPF routing enabled. I need to hide one of the interfaces from other routers.
I've tried everything:
* I do not add network of this interface to OSPF
* I've set up routing filters for this network
* I've added some firewall rules to filter traffic.
But this seemed not enough.
My setup looks like this:
Interfaces
# NAME TYPE RX-RATE TX-RATE MTU
0 R KN ether 0 0 1500
1 R MainGate ether 0 0 1500
2 X 702 ether 0 0 1500
Addresses
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.108.254/24 192.168.108.0 192.168.108.255 KN # local network
1 192.168.105.34/24 192.168.105.0 192.168.105.255 MainGate # Local network to backbone area
2 *.*.*.*/27 91.198.10.0 91.198.10.31 MainGate # real IP here
3 192.168.158.254/24 192.168.158.0 192.168.158.255 KN # local network
4 X 192.168.3.254/24 192.168.3.0 192.168.3.255 702 # This one should be hidden (currently disabled)
OSPF
/routing ospf interface print
0 interface=KN cost=10 priority=0 authentication-key="12345678"
network-type=broadcast retransmit-interval=5s transmit-delay=1s
hello-interval=10s dead-interval=40s
1 interface=MainGate cost=10 priority=0 authentication-key="12345678"
network-type=broadcast retransmit-interval=5s transmit-delay=1s
hello-interval=10s dead-interval=40s
/routing ospf network print
Flags: X - disabled, I - invalid
# NETWORK AREA
0 192.168.105.0/24 backbone
1 192.168.108.0/24 backbone
2 192.168.158.0/24 backbone
OSPF Filters
/routing filter print
Flags: X - disabled
0 chain=ospf-out prefix=192.168.3.0/24 type=ospf invert-match=no
action=discard
1 chain=ospf-out prefix=192.168.3.254 type=ospf invert-match=no
action=discard
2 chain=ospf-out prefix=192.168.3.0/24 prefix-length=24 type=ospf
invert-match=no action=discard
the problem is that when i disable 3.254 address then everything is OK:
1 <1 мс <1 мс <1 мс 192.168.122.254
2 <1 мс 1 ms 1 ms 192.168.105.13
3 192.168.105.13 reports: Destination host unreachable.
192.168.105.13 -- our designated router (not under my control)
But when i enable it, i've got pings with "redirected" flag (currently i solved problem with firewall filters, but this is NOT OK). 3.x network should be hidden completely from outside.
Currently network is hidden (regardless of 3.254 address enabled) but 3.254 is visible.
Pls help.
PS: in routing table there is no records with 3.x addresses