redirect a single ip-adress

Home Page Forums Network Management ZeroShell redirect a single ip-adress

This topic contains 0 replies, has 0 voices, and was last updated by  serioussebi 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42621

    serioussebi
    Member

    hi guys,
    i am using zeroshell in brigde-mode.we have a network with 140 static ips. it works really god.i use level7 layers to match filesharing activity. it would be perfekt if i could redirect a single ip to a local website, where he gets information about why he has been banned.

    i tried to set a firewall rule in the forward chain, match the ip and redirect it with iptables commands. but all i tried wasn’t accepted by iptables or didn’t work.

    thanks in advance for your help,
    sebastian.

    #51035

    ppalias
    Member

    Change of destination IP is done in PREROUTING chain of nat table. Try this:

    iptables -t nat -I PREROUTING -s 192.168.1.2 -p tcp --dport 80 -j DNAT --to-destination 125.64.56.78

    where 192.168.1.2 is the banned IP and 125.64.56.78 is the IP you want to redirect to.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.