Help iplimit-patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sorry by my english,

I reading for a iptables because I need to make a solution to my case: 
I have a sever that I use only to redirect packets to another sever, I control by IP source like example:

iptables -A INPUT -s 200.sss.sss.sss -j ACCEPT -p tcp --dport 23
/usr/sbin/iptables -t nat -A PREROUTING -s 200.sss.sss.sss -j DNAT -d 200.lll.lll.lll -p tcp --dport 23 --to 172.ddd.ddd.ddd:23

/usr/sbin/iptables -t nat -A POSTROUTING -j SNAT -d 172.ddd.ddd.ddd -p tcp --dport 23 --to-source 172.aaa.aaa.aaa

200.sss.sss.sss = IP source Client
200.lll.lll.lll = IP Server localhost - extern IP
172.ddd.ddd.ddd = IP destination Server
172.aaa.aaa.aaa = IP configured to accept conections on 172.ddd.ddd.ddd

I want to control the limit of conections by IP source simultaneous-use, Ex. IP 200.sss.sss.sss can use 3 conections in the same time.

It's possible?

Thanks.

-- 
Denilson Guedes Duarte
ISPbnet - Provedor de Internet
Uruguaiana - RS
denilson@xxxxxxxxxxx
(55) 411 6350



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux