Community discussions

MikroTik App
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Problem assigning public ip address over pppoe server

Sat Aug 04, 2012 8:14 pm

Hi guys.

I have a big problem to asign some public ip address to my clients. My clients can not connect to another of my clients through the public IP address.

For example, a client that have the public ip address 212.4.xxx.155 can not connect to a windows server of other client that have the ip 212.4.xxx.165.

There are some screenshots of my router:

Image

Image

Image

Image

In "Address List", my clients obtain the local ip as their IP Address, and the real public ip address as network. Why?

"Br-Interno" is a bridge that contains some ethernet ports.

Many thanks.
 
User avatar
hassibi
Trainer
Trainer
Posts: 130
Joined: Wed Jun 13, 2012 5:58 am
Location: Iran,Kerman

Re: Problem assigning public ip address over pppoe server

Sat Aug 04, 2012 9:18 pm

Hi
why you use that dst-nats?
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Re: Problem assigning public ip address over pppoe server

Sat Aug 04, 2012 9:31 pm

For my personal computers, playstation 3, etc...
 
User avatar
hassibi
Trainer
Trainer
Posts: 130
Joined: Wed Jun 13, 2012 5:58 am
Location: Iran,Kerman

Re: Problem assigning public ip address over pppoe server

Sun Aug 05, 2012 7:41 am

your client must be connect together.check your pppoe client firewall maybe your client have an active firewall so deny icmp requests...
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Re: Problem assigning public ip address over pppoe server

Sun Aug 05, 2012 12:13 pm

Hi hassibi.

I think that the firewall is not the problem, as from a another company adsl can connect perfectly.

The problem may be the routes, or ip addresses in address list, because instead of having the public IP address 212.4.xxx.155 has the internal ip address 172.10.0.2.

When I do a tracert from the client answer me this:

C: \ Documents and Settings \ Administrator> tracert 212.4.109.165

Tracing route to var165-109.gnet.es [212.4.109.165]
over a maximum of 30 hops:

1 <1 ms <1 ms <1 ms 192.168.2.1 --> Internal router of client
2 1 ms <1 ms <1 ms var153-109.gnet.es [212.4.109.153] --> Gateway of ADSL2
3 53 ms 51 ms 52 ms 212.4.96.5 --> Gateway of my ISP
4 50 ms 52 ms 52 ms var153-109.gnet.es [212.4.109.153]
5 101 ms 102 ms 101 ms 212.4.96.5
6 104 ms 102 ms 101 ms var153-109.gnet.es [212.4.109.153]
7 150 ms 151 ms 151 ms 212.4.96.5
8 150 ms 151 ms 153 ms var153-109.gnet.es [212.4.109.153]
9 204 ms 201 ms 201 ms 212.4.96.5

This is a continuous loop probem.
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Re: Problem assigning public ip address over pppoe server

Mon Aug 06, 2012 10:29 am

Someone can help me please?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Problem assigning public ip address over pppoe server

Mon Aug 06, 2012 10:36 am

address you see as local address is set into profile where it explicitly states that this address should be used as a local address while remote is correctly set from the pool.

you can attempt to set arp=proxy-arp on the local interface that has address from network where your customers belong to.
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Re: Problem assigning public ip address over pppoe server

Mon Aug 06, 2012 10:50 am

I've tried but not working.

Thanks
 
User avatar
hassibi
Trainer
Trainer
Posts: 130
Joined: Wed Jun 13, 2012 5:58 am
Location: Iran,Kerman

Re: Problem assigning public ip address over pppoe server

Mon Aug 06, 2012 8:21 pm

i think your mangles is your problem...disable your ping mangles and then check again.
when your clients connect their PPPOE's their add a connected route to your router.but when you use prerouting chain in mangle and mark for example ICMP packets that's packets skip main routing table and then they cant connecting together...check it.
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Re: Problem assigning public ip address over pppoe server

Mon Aug 06, 2012 8:57 pm

Hello Hassibi,

I tried what you said and it worked by changing the prerouting chain to output in the first three rules (mark routing).

The problem I have if I change that, is that all customers leave for internet on the same DSL connection (ADSL_1), and the other two connections are not used, and this is a big problem for me, because the line is saturated ADSL_1 .

How I can fix this?

Thank you very much.
 
User avatar
hassibi
Trainer
Trainer
Posts: 130
Joined: Wed Jun 13, 2012 5:58 am
Location: Iran,Kerman

Re: Problem assigning public ip address over pppoe server

Mon Aug 06, 2012 9:13 pm

Hello Hassibi,

I tried what you said and it worked by changing the prerouting chain to output in the first three rules (mark routing).

The problem I have if I change that, is that all customers leave for internet on the same DSL connection (ADSL_1), and the other two connections are not used, and this is a big problem for me, because the line is saturated ADSL_1 .

How I can fix this?

Thank you very much.
create an address lists for your public IPs that you have.then change your mangles to work except dst-address-list="your created list" then your problem will be solved.
 
DarthLodis
just joined
Posts: 18
Joined: Sun Aug 24, 2008 12:34 am

Re: Problem assigning public ip address over pppoe server

Mon Aug 06, 2012 11:07 pm

hmm let me get this straight.... you have 3 Adsl connections and want to assign public ip to clients of yours?
Theres a lot of IP public on your pool, how did u go these with ADSL? if the ISP only give us one public ip per connection..
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Re: Problem assigning public ip address over pppoe server

Tue Aug 07, 2012 12:45 am

Hello Hassibi,

I tried what you said and it worked by changing the prerouting chain to output in the first three rules (mark routing).

The problem I have if I change that, is that all customers leave for internet on the same DSL connection (ADSL_1), and the other two connections are not used, and this is a big problem for me, because the line is saturated ADSL_1 .

How I can fix this?

Thank you very much.
create an address lists for your public IPs that you have.then change your mangles to work except dst-address-list="your created list" then your problem will be solved.
Do I have to change the first three rules (routing-mark)? Or all the other rules (ping, rdp, pop3, ...)?

Thanks
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Re: Problem assigning public ip address over pppoe server

Tue Aug 07, 2012 12:47 am

hmm let me get this straight.... you have 3 Adsl connections and want to assign public ip to clients of yours?
Theres a lot of IP public on your pool, how did u go these with ADSL? if the ISP only give us one public ip per connection..
Mi ISP gives me a /29 block for each ADSL, and another /28 for each adsl:
- ADSL1: block /29 + block /28
- ADSL2: block /29 + block /28
- ADSL3: block /29 + block /28
 
User avatar
hassibi
Trainer
Trainer
Posts: 130
Joined: Wed Jun 13, 2012 5:58 am
Location: Iran,Kerman

Re: Problem assigning public ip address over pppoe server

Tue Aug 07, 2012 2:56 am

Do I have to change the first three rules (routing-mark)? Or all the other rules (ping, rdp, pop3, ...)?

Thanks
i think best way is you change all of the mangles with chain prerouting.
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Re: Problem assigning public ip address over pppoe server

Tue Aug 07, 2012 5:53 pm

Do I have to change the first three rules (routing-mark)? Or all the other rules (ping, rdp, pop3, ...)?

Thanks
i think best way is you change all of the mangles with chain prerouting.
Sorry, but i dont understand you.

Can you show me an example please?

Thanks!
 
User avatar
hassibi
Trainer
Trainer
Posts: 130
Joined: Wed Jun 13, 2012 5:58 am
Location: Iran,Kerman

Re: Problem assigning public ip address over pppoe server

Tue Aug 07, 2012 10:26 pm

Yes of course
/ip firewall mangle add chain=prerouting src-address-list=CLIENTESA1 dst-address-list=!MYIPS action mark-routing new-routing-mark=ADSL1
... 
add you PPPOE users IP addresses to MYIPS address-list and then for all mangles set
dst-address-list=!MYIPS


Good Luck
 
djfrancis
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Thu Feb 02, 2012 12:01 am

Re: Problem assigning public ip address over pppoe server

Wed Aug 08, 2012 1:32 am

Yes of course
/ip firewall mangle add chain=prerouting src-address-list=CLIENTESA1 dst-address-list=!MYIPS action mark-routing new-routing-mark=ADSL1
... 
add you PPPOE users IP addresses to MYIPS address-list and then for all mangles set
dst-address-list=!MYIPS


Good Luck
Hassibi thank you very much!

It works perfectly. xDDD

thanks

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot], MrDeepFreeze, raiser and 133 guests