Community discussions

MikroTik App
 
andybr
just joined
Topic Author
Posts: 5
Joined: Thu May 18, 2006 5:53 pm

How-to set nat

Wed May 24, 2006 7:55 pm

Hi,

I need a little help with mikrotk 2.9.7

I built this setup in my lab:

cliente 192.168.1.2/24 <--> lan <--> 192.168.1.1/24 mikrotik client 192.168.2.1/24 <--> wireless 2.4 <--> 192.168.2.2/24 mikrotik ap - 10.1.1.200/24 <--> lan <--> 10.1.1.1/24 proxy <--> www

Client
IP: 192.168.1.2/24 via 192.168.1.1
Mikrotik 2.9.7 Client
ether1: 192.168.1.1/24
wavelan1: 192.168.2.1/24 via 192.168.2.2
Mikrotik 2.9.7 AP
wlan1: 192.168.2.1/24
ether1: 10.1.1.200/24 via 10.1.1.1

Proxy
eth0: 10.1.1.1/24
eth1: x.x.x.x via www

My question is: can i set nat in the mikrotik ap the all traffic coming from wlan1 to ether1 so all the traffic will go out as 10.1.1.200 ?

Like iptables (example)
iptables -t nat -A POSTROUTING -o ether1 -j SNAT --to 10.1.1.200

Thanks,
Anderson