Community discussions

MikroTik App
 
xkaas
just joined
Topic Author
Posts: 6
Joined: Tue Sep 07, 2021 12:55 pm

NATting with Mikrotik

Tue Sep 07, 2021 1:06 pm

Hello!

Recently, I switched to a Mikrotik router. Very happy
My current setup looks like:
Ether1 - ISP WAN
Ether2 - LAN
Ether3 - BGP port (To announce own IP´s)


I removed all NAT rules so that the BGP port would not show the WAN IP address. However, I now I of course don't have access to the internet via Ether2 (LAN)

How would I create a NAT rule that only applies to Ether2? So Ether2 is Natt´éd user Ether1.

I tried with a bridge, but could not get it working. Do you have some tips for me?
 
User avatar
evince
Member
Member
Posts: 353
Joined: Thu Jul 05, 2012 12:11 pm
Location: Harzé - Belgique
Contact:

Re: NATting with Mikrotik

Tue Sep 07, 2021 4:36 pm

Hello, sipmly use masquerade rule :
/ip firewall nat
add action=masquerade chain=srcnat comment="masquerade" out-interface=Ether1 src-address=your_lan_subnet
 
xkaas
just joined
Topic Author
Posts: 6
Joined: Tue Sep 07, 2021 12:55 pm

Re: NATting with Mikrotik

Wed Sep 08, 2021 11:11 am

Hello, sipmly use masquerade rule :
/ip firewall nat
add action=masquerade chain=srcnat comment="masquerade" out-interface=Ether1 src-address=your_lan_subnet
Hello.
Thanks for your answer,
When I set that up, I still don't get any network on 192.168.88.0/24.

See following screenshot:
https://imgur.com/a/aC0je5O
 
kd2pm2
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Wed Nov 14, 2012 7:14 am
Location: New Jersey, USA

Re: NATting with Mikrotik

Wed Sep 08, 2021 2:26 pm

Perhaps try changing the source to 192.168.88.0/24. Its probably trying to allow only 192.168.88.0 access to NAT and not the whole network. Reminder, the source could be an individual IP or a range. Without the CIDR, it assumes you are only allowing 1 address to gain access to the internet.
 
User avatar
iaskakho
just joined
Posts: 17
Joined: Sun Sep 05, 2021 9:27 pm
Location: New York, USA
Contact:

Re: NATting with Mikrotik

Thu Sep 09, 2021 1:12 am

Can you show your routing table? Best if the export of config.
 
xkaas
just joined
Topic Author
Posts: 6
Joined: Tue Sep 07, 2021 12:55 pm

Re: NATting with Mikrotik

Fri Sep 10, 2021 6:38 pm

Thanks for the answers

I got it working - Kind of. With the above written stuff, It routes everything to the subnet, so I loose access to all other subnets on the interfaces..

Who is online

Users browsing this forum: devnull0 and 49 guests