Community discussions

MikroTik App
 
cicserver
Member
Member
Topic Author
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

Beiginner question for User Public Ip Routing

Tue Apr 22, 2014 5:32 pm

I have a mikrotik base pppoe server with /29 (1.1.1.1/29) public pool for my WAN, example 1.1.1.1 is ISP gateway and 1.1.1.2 is on mikrotik wan interface.
and users gets private Ip series (192.168.1.0/24) via pppoe server which then gets natted. everything ok.

Now I want to provide public to some clients also via same router. My ISP can provide /24 public ip pool (2.2.2.0/24).
My question is What configuration at my router end would be required? and what settings I should ask my ISP to do for me at there end? what should I say to my ISP that how to route the new pool to where?

What I have found o far via goggling is that I have to create a pool with new public ip series pool and assign it in pppoe profile, ok fine, now I have to create mange rule to mark traffic coming fro new public pool and in route , I have to define gateway for these marked traffic pointing to 1.1.1.1 ? correct?

Should I have to create a new ROUTE for 2.2.2.0/24 pool pointing to 1.1.1.1 ? How?

sorry for so many question :(
 
jaykay2342
Member
Member
Posts: 336
Joined: Tue Dec 04, 2012 2:49 pm
Location: /Vigor/LocalGroup/Milky Way/Earth/Europe/Germany

Re: Beiginner question for User Public Ip Routing

Tue Apr 22, 2014 10:37 pm

So your ISP needs to route 2.2.2.0/24 towards your router. e.g. by adding a route for it pointing to 1.1.1.2 ( the wan site of your router )

you just create a 2nd pool/profile for users with public IPs. Important is that you exclude the traffic from those users from the natting. to achieve that your nat rule should have src condition like src=192.168.1.0/24.

i don't see any reason for marking traffic or adding new routes on your router.
 
cicserver
Member
Member
Topic Author
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

Re: Beiginner question for User Public Ip Routing

Thu Apr 24, 2014 1:15 pm

So your ISP needs to route 2.2.2.0/24 towards your router. e.g. by adding a route for it pointing to 1.1.1.2 ( the wan site of your router )
you just create a 2nd pool/profile for users with public IPs. Important is that you exclude the traffic from those users from the natting. to achieve that your nat rule should have src condition like src=192.168.1.0/24.
i don't see any reason for marking traffic or adding new routes on your router.
Thank you for quick response. Ok what I understand that the ISP will add a route at there gateway (1.1.1.1) that it should route 2.2.2.0/24(my new public ip pool) to 1.1.1.2(my mikrotik wan interface)
and I have to add private ip series in default NAT/Masquerade rule in src-address so that only private range get natted. Right ?

But my silly question is how mikrotik will know that where to route 2.2.2.0/24 to where?
I mean Do I have to create a route in mikrotik? any example for the route?
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: Beiginner question for User Public Ip Routing

Thu Apr 24, 2014 3:33 pm

It routes based on the destination IP number. You will need to avoid NATing the public IPs allocated to customers.
 
cicserver
Member
Member
Topic Author
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

Re: Beiginner question for User Public Ip Routing

Fri Apr 25, 2014 7:21 am

Sorry I am Unable to understand :(
Can you please explain it a little more?
will there be any requirement to create route for 2.2.2.0/24 subnet to any where? any example?

Or should i have to create src-nat rule ? like
/ip firewall nat add chain=srcnat src-address=2.2.2.0/24 action=src-nat to-addresses=1.1.1.2
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: Beiginner question for User Public Ip Routing

Fri Apr 25, 2014 1:48 pm

No. You get the ISP to route the public range to you via your gateway. You allocate the IPs to the client(s). You then make sure that you do not source NAT the traffic from clients with public IPs. The traffic is sent out to your existing gateway via the existing default route.
 
jaykay2342
Member
Member
Posts: 336
Joined: Tue Dec 04, 2012 2:49 pm
Location: /Vigor/LocalGroup/Milky Way/Earth/Europe/Germany

Re: Beiginner question for User Public Ip Routing

Fri Apr 25, 2014 1:59 pm

When you use 2.2.2.0/24 as your pool for PPPoE the router adds /32 routes dynamically. So userA connects via pppoe and get 2.2.2.10, the router creates pppoe-userA interface adds a router for 2.2.2.10/32 pointing towards this interface.
 
cicserver
Member
Member
Topic Author
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

Re: Beiginner question for User Public Ip Routing

Fri Apr 25, 2014 2:10 pm

It means I dont have to add any 2.2.2.x series ip on any of the interface manually, Right?
Public IP users will work auto once they connected to pppoe via there dialer and get public from the pool (off course they will be excluded from the default nat rule)

Sorry for asking silly questions, I know it requires very patience to handle beginners and novoices :lol:

Who is online

Users browsing this forum: barte91 and 20 guests