I want to set up a datacap system per user for a server I am running a proxy on.

I want to set up a datacap system for a server I am running a proxy on.

I'm not interested in throttling bandwidth.

I just want to limit port to x GB per month

Users will be blocked if they:

data cap has been hit but the monthly time is still left we can stop total traffic via deleting the user

monthly time has been completed but the user has not hit the data cap we will delete the user

The server is a Debian 8 machine. Just a regular box.

Clients connect to it via squid. The server is a proxy server.

The server accepts connections on port 33128 to 33218

Each port is bound to a squid user account.

User Bandwith is tracked via Sarg and updated every Minute via cron job

I want to stop accepting connections on a per port basis once a data limit and or monthly time is reached.

PS: When I say port, I mean port number (33128-33228)

The solution i need made:

parse squid logs for the traffic used per user;

create firewall rules on the ports the client arrive, and accounting for the traffic used (probably easier). see Traffic stats per network port . Just be aware that a server reboot resets the iptable stats, so it would be wiser to save them to an SQL database. (on a controlled reboot maybe iptables saves the traffic stats, however you can have a crash or power failure).

Part 2 of this task which will be to integrate the datacap into e-commerce like woocommerce so users can purchase more data, which would reactivate the squid account and remove the block.

Thank you.

Skills: Linux, PHP, Shell Script, System Admin, Ubuntu

See more: set linux vpn server vps, set mms streaming server, set video stream server, datacap web services, datacap wtm uri, set simple linux server tasks, want set file hosting site, set stream video server, set video streaming server, alfresco server running slow, set linux vpn server, set permissions user drupal, set ssl shared server cpanel, set vlc streaming server, set debian etch server, set bulk email server, sql server running total update order, set vlc media server, want set news website, ubuntu set small office server

About the Employer:
( 6 reviews ) las vegas, United States

Project ID: #17662080

15 freelancers are bidding on average $443 for this job


Greetings, I`m ready to set up a datacap system per user for a server you`re running a proxy on. As for me, I'm a professional system admin with 10+ years of experience. My main specialization is LAMP stack of techn More

$555 USD in 10 days
(32 Reviews)

Hi, Hope you doing well sir i go through your message in given below i make sure you that i can help you to set up a data cap system per user for a server I am running a proxy on. as well better for you well i More

$555 USD in 10 days
(28 Reviews)

11 Years working here with a rate of 5/5 [login to view URL] This link is a system for Multi Vendor That link is a sample of what I did before 11 Years working here with More

$250 USD in 10 days
(41 Reviews)

Dear friend, We read through the job details We very much look forward to the opportunity to work with you and to make this occasion a momentous one. Can we have a discussion now ? Sample web development w More

$555 USD in 15 days
(6 Reviews)

Hi, I can start work on your project immediately once you confirm me and i am also open for further discussion if you want. I have 8+ years in web design & development with good experience in following skills ... More

$500 USD in 10 days
(5 Reviews)

hello sir thanks for placing requirement in freelancer. i will configure your datacap system.I have 5+ years of experience in managing complex linux architectures and managing cloud infrastructures. I have worked on m More

$250 USD in 1 day
(19 Reviews)

Dear Client, We are expertise in php, core php, CMS, HTML5, CSS3, bootstrap, WordPress, OpenCart, Magento, PSD to HTML, Angular JS, Node JS photoshop, OPencart, Codeignitor, Laravel and many other technologies. We have More

$600 USD in 15 days
(76 Reviews)

I'm interested in your project. Please send me a message so that we can discuss more. Come online, I have some questions to ask you Thanks, Karim [login to view URL] More

$250 USD in 0 days
(5 Reviews)

I have experience with similar project based on squid. Available to start immediately and complete as soon as possible. Please contact to discuss details if you are interested. Best Regards, Ilya

$500 USD in 10 days
(4 Reviews)

can do this

$250 USD in 1 day
(11 Reviews)

"Hi !! Nice to E-meet you We are experts in creating native iOS/Android apps and games. we have strong knowledge of MVC, Clean Swift, programming languages (Objective C, Swift, Java), standard iOS frameworks (UIKit, Ma More

$333 USD in 10 days
(0 Reviews)

Bariza Software Solutions provides your tailor-made website for your business. Basically, we design custom flexible and user-friendly websites as per clients demand. We have more than 10 years’ experience in web develo More

$388 USD in 10 days
(0 Reviews)

Dear Client, As per your RFP, I have reviewed your project requirements in relating to " I want to set up a data cap system per user for a server I am running a proxy on." I would like to share that I am a senior W More

$555 USD in 10 days
(0 Reviews)

nothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingn More

$555 USD in 10 days
(0 Reviews)

Hi , I have been the only developer of world's second largest proxy seller [login to view URL] Now i am running my own residential proxy company [login to view URL] I am also core developer at VLC media pla More

$555 USD in 10 days
(0 Reviews)