Community discussions

MikroTik App
 
satish
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Sun Apr 03, 2011 10:52 am

How to change public ip's when users login and logout...

Tue Oct 28, 2014 9:25 am

Dear folks,

How to change public ip's when users login and logout.


Clearly...

after a user login to hotspot wan has to change when that user relogin. Because IRCTC will allow only two tickets per one WAN ip.


Really sorry for bad english..
Satish
 
satish
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Sun Apr 03, 2011 10:52 am

Re: How to change public ip's when users login and logout...

Tue Oct 28, 2014 7:39 pm

Plz help me...
Satish
 
flipk12
newbie
Posts: 35
Joined: Mon Oct 06, 2014 5:49 pm
Location: Asturias/Spain

Re: How to change public ip's when users login and logout...

Tue Oct 28, 2014 7:59 pm

Could you explain it a little bit more?
Login to where?
Does IRCTC means Indian Railway and Catering and Tourism Corporation Limited?
And are you saying that they only sell two tickets per client IP and you want to change your IP every time you go there?
Incredible! :shock:
 
User avatar
jacekes
Member Candidate
Member Candidate
Posts: 167
Joined: Tue Aug 30, 2011 9:34 am
Location: Poznan, Poland
Contact:

Re: How to change public ip's when users login and logout...

Tue Oct 28, 2014 8:01 pm

How many public IP addresses do you have?
You can even change public addresses even on a per-tcp-session basis by just simply setting up src-nat with a public subnet configured as the to-addresses. But I guess this is highly unrecommended.
I was certified a long time ago:
MTCNA# 1210NA193 MTCTCE# 1210TCE056 MTCWE# 1211WE010

ONE NETWORK DIAGRAM IS WORTH MORE THAN A THOUSAND WORDS!
 
satish
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Sun Apr 03, 2011 10:52 am

Re: How to change public ip's when users login and logout...

Thu Oct 30, 2014 7:29 am

I have 5 ip pool. Can you please explain briefly...
Satish
 
User avatar
jacekes
Member Candidate
Member Candidate
Posts: 167
Joined: Tue Aug 30, 2011 9:34 am
Location: Poznan, Poland
Contact:

Re: How to change public ip's when users login and logout...

Thu Oct 30, 2014 9:22 am

/ip firewall nat add chain=srcnat src-address=(private address pool) action=src-nat to-addresses=(public address pool)

This rule gives per-session NAT. But it's a very bad idea.
I was certified a long time ago:
MTCNA# 1210NA193 MTCTCE# 1210TCE056 MTCWE# 1211WE010

ONE NETWORK DIAGRAM IS WORTH MORE THAN A THOUSAND WORDS!
 
satish
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Sun Apr 03, 2011 10:52 am

Re: How to change public ip's when users login and logout...

Thu Oct 30, 2014 10:55 am

Ya thanks its working
Satish

Who is online

Users browsing this forum: ErfanDL, gabborgabbor, jbolakakis and 51 guests