How to Setup openSUSE as Router

Setting up openSUSE as router is not too difficult. The setup process only needed a few step to completed, as shown in the following wizard :

Configuration :

eth0 IP Address         : 197.187.87.0/28
eth1         IP Address : 165.155.121.0/24
Gateway  : 197.187.87.1
DNS                       1 : 215.155.200.45
DNS 2 : 215.155.200.46
  1. Activating router function
    echo 1>/proc/sys/net/ipv4/ipforward
  2. Create a routing with network as a target
    route add -net 168.155.121.0/24 gw 165.155.121.1
  3. Create a routing table
    iptables -t nat -A POSTROUTING -s 165.155.121.0/24 -j MASQUERADE
  4. Saving IPTables setting
    iptables-save > /etc/sysconfig/iptables-net
  5. Make sure IPTables will be started while booting
    vi /etc/init.d/network
  6. Add the options :
    iptables-restore < /etc/sysconfig/iptables-net
  7. Save the configuration
  8. Check the router function by running ping command from host client into internet address

Reference (Indonesian) :

  1. Membuat Router di SUSE

Random Post

If you enjoyed this post, make sure you subscribe to my RSS feed!

Posted by Masim "Vavai" Sugianto on Oct 29th, 2008 and filed under Linux, OpenSUSE. You can follow any responses to this entry through the RSS 2.0. You can leave a response by filling following comment form or trackback to this entry from your site

Leave a Reply