Sunday, January 3, 2016

Setting Connection

Setting Connections

Setup modem
IP: 192.168.1.1
netmask: 255.255.255.0
type: PPPOE


Router Setup BOX
IP WAN (Ethernet to the modem line): 192.168.1.2
netmask: 255.255.255.0
Gateway: 192.168.1.1

Mikrotik in winbox only on ip> address
Linux:
edit / etc / network / interfaces
Code:
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1

IP LAN (ethernet hub switch to the lane): 192.168.0.1
netmask: 255.255.255.0

Mikrotik of winbox just let easy
Linux:
Code:
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0

Router DNS: 192.168.1.1 could of, could of dns provider directly
Mikrotik kang winbox:
ip> DNS> Settings

Linux:
edit /etc/resolv.conf
Code:
nameserver 192.168.1.1
nameserver 203.130.208.18
nameserver 8.8.8.8
Setting ip_forward (linux)
edit /etc/sysctl.conf
goleti
Code:
net.ipv4.ip_forward = 1
exhaust the # sign in front of the posts
edit /etc/rc.local
added before the exit 0
Code:
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
Do not forget to install dns server so that the client can request to the dns server
Code:
sudo apt-get install bind9
keeps restarting

Setting masquerade (MikroTik)
Code:
/ ip firewall nat add chain = srcnat action = masquerade src-address = 192.168.0.0 / 24
Do not forget to set allow remote requests on setting dns proxy e

Setting Client
Client IP Address: 192.168.0.X
netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS: 192.168.0.1

* Invalid client IP Address 192.168.0.2 – 192.168.0.254
Source Article Information