• Home
  • Free Stuff
  • About
  • Contact

How to Setup openSUSE as Router

October 29, 2008

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 :
[code language=’cpp’]
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
[/code]

  1. Activating router function
    [code language=’cpp’]echo 1>/proc/sys/net/ipv4/ipforward[/code]
  2. Create a routing with network as a target
    [code language=’cpp’]route add -net 168.155.121.0/24 gw 165.155.121.1[/code]
  3. Create a routing table
    [code language=’cpp’]iptables -t nat -A POSTROUTING -s 165.155.121.0/24 -j MASQUERADE[/code]
  4. Saving IPTables setting
    [code language=’cpp’]iptables-save > /etc/sysconfig/iptables-net[/code]
  5. Make sure IPTables will be started while booting
    [code language=’cpp’]vi /etc/init.d/network[/code]
  6. Add the options :
    [code language=’cpp’]iptables-restore < /etc/sysconfig/iptables-net[/code]
  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
opensuse server router
Share

Linux

Masim "Vavai" Sugianto
Traveller, Open Source Enthusiast & Book Lover. Works as Independent Worker & Self-Employer.

2 Comments


NFaZe
July 8, 2009 at 19:51
Reply

eth0 = LAN?
eth1 = Outside?
or is it the other way around



Fred Down
March 13, 2010 at 22:54
Reply

Thanks saved me hours, I keep my servers in the garage on their own subnet , now I can access them from the comfort of my living room.



Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Recent Posts

    • Januari 2021 Portfolio Update
    • December 2020 Portfolio Update
    • After a While
    • Life goes On : Farming
    • Pursuing FIRE in Indonesia : Are You Prepared For A Recession?
    • VirtualBox Error Kernel Driver not Installed (rc=-1908) on Zorin OS 15.2
    • ZorinOS on Intel NUC Hades Canyon Series NUC817HVK
    • Banana Farm
    • Zorin OS 15.2 Ultimate
    • Haraka and LDAP Authentication with Zimbra



© Copyright LetsBlog Theme Demo - Theme by ThemeGoods