Redirct IP to webpage

Hello

If I had a customer that didn’t pay, can I redirect port 80 for him only to a webpage saying pay please?

Thanks

yes, just set dst-nat for such user to IP where web page is. Pay attention that web server you map to wil receive original http request targeted to site user wanted to use, so you have to set web server to respond to any http request with the same page.

Perfect Thanks!

i’m testing Abyss web server on my PC which has a local IP , can I redirect non paid clients to this web server ? i tried but …failed

to-address = 192.168.1.101… to-port = 8081
my local network is 192.168.1.1/24

Maybe u wrong about the port. Check it again…

dest address:your web
dest-port :8081

action: dst-nat , ip:your_ip_local, port :let be default


Thx :laughing:

in the Abyss web server software i put the 8081 port .
when disabled the redirect rule in MT and type http://192.168.1.101:8081 in any browser on the lan its working and it shows the server(192.168.1.101) page ..
but when i tried to make redirection it shows the page cannot displayed .. i dont know why ..

chain=dstnat src-address-list=Non-Paid action=dst-nat 
     to-addresses=192.168.1.101 to-ports=8081

Non-Paid is the address list i want to be redirected ..

anyone ???

I also have this problem
If I make redirect to port :8181 it redirect me only to 80 port

You must redirect protocol=tcp port=80

chain=dstnat action=dst-nat src-address-list=Non-Paid dst-port=80  
     to-addresses=192.168.1.101 to-ports=8081 protocol=tcp

Everyone in Non-Paid will redirect to 192.168.1.101:8081 IF they attempt to make a connection to port 80.

I have used dst-nat and as action “same”
to address xx.xx.xx.xx port 80.
but it does not work if set src-address for mascherating for the same source address.
For me it works.

Now I wnat limit the bandwith to my non pay customer, but before I want to advice the customer with the first page only.
how to set up this?

Hello all ,

also i have this problem and i can not find its solution ..

notice that i have subnets for exmple :
i have a web server that has ip : 44.83.16.2/30
and i would like to open it from : 44.83.16.6/30

I don’t have any rules at MANGLE , disabled firewall to see if it is from my firewall rules but nothing changed .. any idea !