Community discussions

MikroTik App
 
enver
just joined
Topic Author
Posts: 5
Joined: Tue Jun 13, 2006 12:17 am

pppoe + hotspot

Tue Jun 13, 2006 12:36 am

I've trying to active pppoe server + HotSPOT server in the same server. When users login in PPPOE, they are connected to internet, but, the FIRST PAGE is a "walled garden" page of my http (*nix) server, and after this, they navigate in web.
I had altered the page of hotspot to do refresh in the walled garden site. It worked well when i'm using DHCP + HOTSPOT, but, when i connect in PPPOE, doesn't import what ip the laptop get, the HOTSPOT site doesn't open. just a error. The laptop doesn't ping anything, just Mikrotik IP. If i try to acess http://IP of MIKROTIK, the same error occour, if i try a telnet ip of mikrotik in the port 80, the same error occour.
is possible use PPPOE+HOTSPOT? The only thing that I need to do is open the ISP PAGE as the first PAGE when any user try to navigate.

Sorry for the bad english. thanks a lot
 
tsulczynski
newbie
Posts: 31
Joined: Sun Feb 27, 2005 4:02 am
Location: Homer, Alaska
Contact:

Tue Jun 13, 2006 10:21 am

PPPoE works independently of HotSpot. All users connecting via PPPoE will bypass Hotspot altogether. You may need to find an alternate way of displaying your initial splash page. Maybe a NAT redirect rule triggered by PPPoE profile or something like that.
 
enver
just joined
Topic Author
Posts: 5
Joined: Tue Jun 13, 2006 12:17 am

trigged?

Wed Jun 14, 2006 5:07 am

can you send a examplo of a nat rule trigged using pppoe?
i've searched in mikrotik documentation and didn't find anything about it.

Thanks again
 
tsulczynski
newbie
Posts: 31
Joined: Sun Feb 27, 2005 4:02 am
Location: Homer, Alaska
Contact:

Wed Jun 21, 2006 11:04 pm

There's no direct way, but this worked for me in a different scernario, it might work in your situation as well.
1. Add an outgoing filter chain to your pppoe user profile.
2. Add a Filter Rule to the that chain to add the address to an Address List
3. Now you can add a NAT redirect rule that applies to the Address List.

Hope that helps...
 
fivenetwork
newbie
Posts: 45
Joined: Thu Jul 08, 2004 4:39 am

Thu Jun 22, 2006 10:53 am

1. Add an outgoing filter chain to your pppoe user profile.
2. Add a Filter Rule to the that chain to add the address to an Address List
3. Now you can add a NAT redirect rule that applies to the Address List.

Can you be more specific? Like ... Can you list the actual command syntax??

Ole' Argentina!!

Thanks
 
enver
just joined
Topic Author
Posts: 5
Joined: Tue Jun 13, 2006 12:17 am

Wed Jul 12, 2006 8:49 pm

There's no direct way, but this worked for me in a different scernario, it might work in your situation as well.
1. Add an outgoing filter chain to your pppoe user profile.
2. Add a Filter Rule to the that chain to add the address to an Address List
3. Now you can add a NAT redirect rule that applies to the Address List.

Hope that helps...
Thanks.

Yes, helps a lot it's a another view "start point". But, if I make this:
1-Add a rule to add address to an Address List
2-Add a Nat redirect rule that applies to the Address List

How can I make Mikrotik execute this NAT rule just ONE time? Because I'm trying to make my client view obligatorily my ISP page just ONE TIME when he connect to the internet.
 
tsulczynski
newbie
Posts: 31
Joined: Sun Feb 27, 2005 4:02 am
Location: Homer, Alaska
Contact:

Wed Jul 12, 2006 8:56 pm

You can set the amount of time that the address is added to the Address List. It's not a foolproof way, but it might be the easiest. (ie. set it to 30 seconds, so for the first 30 seconds the user sees the page, after that they can browse.) Another way is to add a rule that removes the address from the Address List that applies to the port they get redirected to.
 
enver
just joined
Topic Author
Posts: 5
Joined: Tue Jun 13, 2006 12:17 am

Wed Jul 12, 2006 10:00 pm

You can set the amount of time that the address is added to the Address List. It's not a foolproof way, but it might be the easiest. (ie. set it to 30 seconds, so for the first 30 seconds the user sees the page, after that they can browse.) Another way is to add a rule that removes the address from the Address List that applies to the port they get redirected to.

I try to make this
/ ip firewall nat add chain=dstnat src-address-list=PrimeiraPg action=dst-nat to-addresses=X.Y.W.Z to-ports=80 disabled=no

/ ip firewall filter add chain=PGStart src-address=0.0.0.0 dst-address=0.0.0.0 action= add-src-to-address-list address-list=PrimeiraPg address-list-timeout=30s disabled=no

/ppp profile set default local-address=192.168.250.254 use-compression=yes use-vj-compression=yes use-encryption=yes only-one=no change-tcp-mss=yes outgoing-filter=PGStart

Doesn't work, don't add anything to Address List.... I make anything wrong?

Thanks again!

Who is online

Users browsing this forum: almdandi, Hominidae, nithinkumar2000, sindy and 19 guests