Masquerading

Hi,

I just made a PPPoE connection with my miktorik by there is no internet on any of my computers. I spoke to a friend of mine who suggested to make the masquerading. Now, the only problem is that I don’t know how to do it. Can please someone help me?

Thanks

Copy and paste into a terminal window in Winbox. Replace “external” with the name of your external interface

/ ip firewall nat
add chain=srcnat out-interface=external action=masquerade comment=“” disabled=no

When I copy and pasted that code I got an error message back.

[admin@MikroTik] ip firewall nat> add chain=srcnat out-interface=ADSL action=mas
querade comment=“” disabled=no
input does not match any value of interface

Is there anything misspelled with the code?

Thanks


hai frens
when you have difficult to find out-interface name, try like this code command,

/ip fi nat add chain=srcnat src-address=192.1.1.0/24 action=masquer

that’s subnet e.g: 192.1.1.0/24 assumsy your subnet on network lan [private addresses]

regards
Hasbullah.com

In RouterOS, “ADSL” and “adsl” are not the same and cannot be interchanged. Make sure you spell the name of your out-interface exactly the way it is in your router.

At the moment I do not have a router since the Mikrotik is connected directly to 1 PC and it should distribute the internet by wireless. That should be no problem, doesn’t it?

Thanks

Your Mikrotik is the router I referred to in my post. The “out-interface” is the NIC inside your PC connecting you to your iSP.

ohhh…iccc! sorry for being such a newbie but I just got by Mikrotik. Thanks a lot for the support

I have done all the settings you suggested me to do but the problem persisted. are there any manuals/tutorials over the internet how to configure the mikrotik the first time?

Thanks

Hi,

Please go to this URL:

http://www.mikrotik.com/testdocs/ros/2.9/ip/nat_content.php#6.36.3.2

Bye.
Fran.

In addition to masquerade you may want to verify that your interfaces are all enabled…

/interface enable ether1
/interface enable wlan1

When setting up masquerade I have had best luck doing:
/ip firewall nat add chain=srcnat action=masquerade out-interface=wlan1

Regards