User:Sage

From Funtoo
Jump to: navigation, search

This tutorial is used to assist in the development funtoo servers used for internet cafe and school. This servers includes internet sharing , local dns, and data sharing.

Network Spesification

WAN (Wide Area Network)
IP 124.81.181.34
NM 255.255.255.248
GW 124.81.181.33
NS1 202.155.0.10
NS1 202.155.0.15

LAN (Local Area Network)
IP 192.168.1.1
NM 255.255.255.0

Network Configuration

WAN is a network that is connected to the Internet. In this example, using Indosat M2 with VSATs which have 8 public ip and one of them used to the server (124.81.181.35). WAN connected to the network device eth0, in the configuration file /etc/conf.d/netif.eth0

# nano /etc/conf.d/netif.eth0
template="interface"
IP=124.81.181.35
NM=255.255.255.0
GW=124.81.181.33
NS1=202.155.0.10
NS2=202.155.0.15
# ln -s /etc/init.d/netif.tmpl /etc/init.d/netif.eth0
# rc-update add netif.eth0 boot
# rc

LAN is a network that is connected to the local network. The local network is connected to a network device eth1, in the configuration file /etc/conf.d/netif.eth1.

# nano /etc/conf.d/netif.eth1
template="interface"
IP=192.168.1.1
NM=255.255.255.0
# ln -s /etc/init.d/netif.tmpl /etc/init.d/netif.eth1
# rc-update add netif.eth1 boot
# rc

Router Configuration

The router allows you to connect 2 (two) or more networks. The server will also be supporting the NAT (Network Address Translation), to connect the internet with a local network.