Friday, November 28, 2008

Mikrotik Step by step Configuration under 5 min by Command

Mikrotik Step by step Configuration under 5

Ethernet base ISP

5 Step to configure the Mikrotik:

1. IP Address
2. Gateway
3. DNS
4. NAT
5. + Transparent proxy rules

Step 1
[admin@Mikrotik]>ip address interface add=ether1 address="your public ip" \
disabled=no
[admin@Mikrotik]>ip address interface add=ether2 address="your LAN ip" \
disabled=no

Step 2
[admin@Mikrotik]>ip route add gateway="your gateway ip" disabled = no

Step 3
[admin@Mikrotik]>ip dns set primary-dns="your ISP's primary dns" \
secondary-dns = "your ISP secondary dns" \
allow-remote-requests = yes


Step 4
[admin@Mikrotik]>ip firewall NAT add chain=srcnat out-interface=ether1 \
action = MASQUERADE disabled = no

Step 5
[admin@Mikrotik]>ip web-proxy set port=8080
hostname=host.yourdomain.com \
transparent-proxy = yes \

Cache-administrator=support@yourdomain.com enabled=yes

[admin@Mikrotik]>ip firewall NAT add chain=dstnat protocol=tcp dst-port=80 \
action=redirect to-ports=8080 disabled=no \
comment="transparent proxy"

[admin@Mikrotik]>ip firewall nat add chain=dstnat protocol=tcp dst-port=3128
action=redirect to-ports=8080 disabled=no

[admin@Mikrotik]>ip firewall nat add chain=dstnat protocol=tcp dst-port=8080 \
action=redirect to-ports=8080 disabled=no

No comments: