Lukket

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.

Evner: Linux, PHP, Shell Script, System Administrator, Ubuntu

Se mere: 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

Om arbejdsgiveren:
( 6 bedømmelser ) las vegas, United States

Projekt ID: #17662080

15 freelancere byder i gennemsnit $443 på dette job

tangramua

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 Flere

$555 USD in 10 dage
(32 bedømmelser)
6.3
humrobo

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 Flere

$555 USD in 10 dage
(28 bedømmelser)
5.6
AdhamSoft

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 Flere

$250 USD in 10 dage
(41 bedømmelser)
5.7
bluecoded

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 Flere

$555 USD in 15 dage
(6 bedømmelser)
5.1
businesstogether

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 ... Flere

$500 USD in 10 dage
(5 bedømmelser)
4.4
Savstac

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 Flere

$250 USD på 1 dag
(19 bedømmelser)
4.4
mayankinnovative

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 Flere

$600 USD in 15 dage
(76 bedømmelser)
4.4
LinuxGun

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 https://www.freelancer.com/u/LinuxGun [login to view URL] Flere

$250 USD in 0 dage
(5 bedømmelser)
3.3
ilushawebdev

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 dage
(4 bedømmelser)
3.0
shopshoppy

can do this

$250 USD på 1 dag
(11 bedømmelser)
4.4
sanjibmukherjee3

"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 Flere

$333 USD in 10 dage
(0 bedømmelser)
0.0
barizasoftware

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 Flere

$388 USD in 10 dage
(0 bedømmelser)
0.0
malkit001

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 Flere

$555 USD in 10 dage
(0 bedømmelser)
0.0
HorizonTeacher

nothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingnothingn Flere

$555 USD in 10 dage
(0 bedømmelser)
0.0
neer4jiitdelhi

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 Flere

$555 USD in 10 dage
(0 bedømmelser)
0.0