Implementing Persistent Host and Network Routes on Solaris SystemsBy Michael Peters This Tech Tip explains how to enable persistent routing instructions on a Solaris system, for security and networking. Persistent route statements are necessary if your system is routing network traffic to alternate segments or hosts that reside on your private network. Persistent routing is also useful when implementing a firewall. System Requirements
Network ExampleThe following image will represent the network topology for this example. ConfigurationIn the The following example can be implemented on all Solaris OS Platform Editions. HOST A HOST A has two Ethernet interfaces. One interface has IP address 192.168.100.10 assigned to it, and the other interface has IP address 172.16.0.10 assigned to it. In the route add -net 10.0.0.0 -netmask 255.0.0.0 172.16.0.20 2 HOST B HOSTB has two Ethernet interfaces. One interface has IP address 172.16.0.20 assigned to it, and the other interface has IP address 10.0.0.10 assigned to it. In the route add default 172.16.0.10 HOST C HOST C has one Ethernet interface. The interface has an IP address of 172.16.0.30 assigned to it. If you want this host machine to route to another network segment that is downstream from the default router assigned to it, again create a start script in the route add default 172.16.0.10 route add -net 10.0.0.0 -netmask 255.0.0.0 172.16.0.20 2 Security Usage InstructionsIf HOST A is a firewall or performs NAT translation, use the following example to add host translation for either HOST B or, in this case, HOST C. This will get added to the route add -host 192.168.100.30 172.16.0.30 arp -s 192.168.100.30 8:0:20:b9:b:be pub Another added measure of security to consider would be to refresh the routing information routinely. This would provide some protection against ARP poisoning, IP spoofing, or IP contention caused by IP address conflicts. Change the file permissions on the -rwxr--r-- 1 root sys 4477 Jan 16 06:15 S76addroutes Next create a root cron job to routinely call the Here is an example of a cron job that refreshes itself every hour: 1 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * /etc/rc2.d/S76addroutesNote: Above line should not be on separate lines. Questions?Contact michael.peters@Lazarusalliance.com.
The information and links on this page have been provided by a BigAdmin user. The submitter is solely responsible for such information and links. Sun is not responsible for the availability of external sites or resources, and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. Sun will not be responsible or liable, directly or indirectly, for any actual or alleged damage or loss caused by or in connection with use of or reliance on the information posted here, or goods or services available on or through any external site or resource. |
| |||