Mikrotik Gateway Server
How to create mikrotik as gateway server??
Here it is...
After Install Mikrtotik Os, Now how to make mikrotik As Gateway Server
1. Login in Mikrotik Routers through console
MikroTik v2.9.7
Login: admin
Password:
2. For the security of the substitute password default

[admin@Mikrotik] > password
old password: *****
new password: *****
retype new password: *****
[admin@ Mikrotik]] >
3. Change the Mikrotik Router name, in this step the name server will be replaced to “GateMahasiswa”
[admin@Mikrotik] > system identity set name=GateMahasiswa
[admin@GateMahasiswa] >
4. Saw interface to Mikrotik Router
[admin@GateMahasiswa] > interface print
Flags: X – disabled, D – dynamic, R – running
# NAME TYPE RX-RATE TX-RATE MTU
0 R ether1 ether 0 0 1500
1 R ether2 ether 0 0 1500
5. Gave IP address in interface Mikrotik. For example ether1 will be used by us for the connection to the Internet with IP 192.168.205.2 and ether2 will be used by us to network local we with IP 123.123.123.1
[admin@GateMahasiswa] > ip address add address=192.168.205.2
netmask=255.255.255.0 interface=ether1
[admin@GateMahasiswa] > ip address add address=123.123.123.1
netmask=255.255.255.0 interface=ether2
6. Saw the IP configuration address that has been given by us
[admin@GateMahasiswa] >ip address print
Flags: X – disabled, I – invalid, D – dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.205.2/24 192.168.205.0 192.168.205.255 ether1
1 123.123.123.1/24 123.123.123.0 123.123.123.255 ether2
7. Gave default Gateway, for example gateway for the internet connection was 192.168.205.5
[admin@GateMahasiswa] > /ip route add gateway=192.168.205.5
8. Saw Tabel routing to Mikrotik Routers
[admin@GateMahasiswa] > ip route print
Flags: X – disabled, A – active, D – dynamic,
C – connect, S – static, r – rip, b – bgp, o – ospf
# DST-ADDRESS PREFSRC G GATEWAY DISTANCE INTERFACE
0 ADC 123.123.123.0/24 123.123.123.1 ether2
1 ADC 192.168.205.0/24 192.168.205.2 ether1
2 A S 0.0.0.0/0 r 192.168.205.5 ether1
9. The Ping test to Gateway to confirm the configuration has been true
[admin@GateMahasiswa] > ping 192.168.205.5
192.168.205.5 64 byte ping: ttl=64 time<1 ms
192.168.205.5 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0.0/0 ms
[admin@GateMahasiswa] >
10. Setup DNS Mikrotik Routers
[admin@GateMahasiswa] > ip dns set primary-dns=192.168.205.5 allow-remote-requests=no
11. Saw the DNS configuration
[admin@GateMahasiswa] > ip dns print
primary-dns: 192.168.205.5 secondary-dns: 0.0.0.0
allow-remote-requests: yes
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 16KiB
12. The test for domain access, for example with ping the name of the domain
[admin@GateMahasiswa] > ping yahoo.com
216.109.112.135 64 byte ping: ttl=48 time=250 ms
10 packets transmitted, 10 packets received, 0% packet loss
round-trip min/avg/max = 571/571.0/571 ms
[admin@GateMahasiswa] >
13. Setup Masquerading, if Mikrotik will be utilised by us as gateway server then so that client computer in network could access internet so you must set masquerading.
[admin@GateMahasiswa] > ip firewall nat add action=masquerade out-interface=ether1
chain: srcnat
[admin@GateMahasiswa] >
14. Saw the Masquerading configuration
[admin@GateMahasiswa] ip firewall nat print
Flags: X – disabled, I – invalid, D – dynamic
0 chain=srcnat out-interface=ether1 action=masquerade
[admin@GateMahasiswa] >
15. After this step could be carried out by the inspection for the connection from the network local. And if succeeding in meaning us has succeeded in carrying out the Mikrotik Router installation as Gateway server. After conected with the Mikrotik network could dimanage used WinBox that could in download from Mikrotik.com or from server mikrotik . The Ip example address server mikrotik 192.168.205.2, via browser was opened http://192.168.205.2 and download WinBox from there


0 komentar:
Poskan Komentar