Networking :: Packaging A Traffic Shaper Project?
Oct 22, 2010
I have a SUSE Linux traffic shaper that can manage bandwidth usage per user and etc.for use it, we must configure LDAP server &client ,edit sudoerr's file, create mysql database with some tables� . Its interface is base on cgi&perl language . How do I package this project?
i don't know what part of proj is necessary for packaging (what is source code for creating a RPM package?)
View 1 Replies
ADVERTISEMENT
Apr 16, 2010
I have nearly completed a project.My team developed using C,shell scripts and qt.I would like to know how to package it as a .deb file??Also during installation,i want it to check for the existence of few packages in the system.If they are not there,i want it to download them using apt.
View 3 Replies
View Related
Sep 20, 2010
I've been trying to create a simple htb qdisc on my computer for learning purposes, but it does not seem to be working as I want it to. Ive made this script that creates a simple qdisc scheme and assigns filters to it:
tc qdisc add dev $ETH root handle 1:0 htb default 1
tc class add dev $ETH parent 1:0 classid 1:1 htb rate 20kbps ceil 0kbps
tc class add dev $ETH parent 1:0 classid 1:2 htb rate 30kbps ceil 100kbps
tc class add dev $ETH parent 1:0 classid 1:3 htb rate 10kbps ceil 100kbps
[code]....
I want it to simply shape packets on my single machine so that when I go to view web pages it will limit the download rate, same thing for p21 ftp and 443 https. I just want to try out how it works and use these trial to get a hang of it, but I noticed so far that its not limiting port 80 at all.
View 2 Replies
View Related
Sep 29, 2010
I need to set up my centOS computer as a firewall in my home network. Ive got 2 interfaces, eth0 and eth1. I want to allow and forward all traffic on eth0 and block all traffic on eth1 except ssh, ping(icmp) and DNS. How do I do this? Ive tried some editing in /etc/sysconfig/iptables but no luck.
View 1 Replies
View Related
Mar 15, 2011
I wanted to tell my server to block all traffic but US only traffic. So i followed this guide:[URL].. Now I know, it's the best way to help prevent hackers/crackers (doesn't matter to me what they are called. I just have to stop them). My server only deals with US clients anyways so might as well just start right there for my server's security before getting into the brute force and injection preventions. So I got it all done compiled everything moved to the proper directory. I then started to setup my iptables. Like so
Code: iptables -F INPUT
iptables -F OUTPUT
iptables -I INPUT 1 -s *.*.*.* -p tcp --dport 22 -j ACCEPT
iptables -I INPUT 2 -s *.*.*.* -p tcp -j ACCEPT
[Code]...
After seeing that i went digging in the code and figured it was something todo with memory allocation.
View 1 Replies
View Related
Sep 27, 2009
Recently I notice that when I'm connected to an vpn server (pptpd) and I'm using it as a default gateway my download and upload speed decreases almost to the half of the usual speed. I made a test using iptables in order to count how much GRE packets are generated (except the real traffic itself) in that way:
Code:
iptables -I INPUT -p gre -j ACCEPT
iptables -I OUTPUT -p gre -j ACCEPT
iptables -I FORWARD -s 172.16.10.101 -j ACCEPT
iptables -I FORWARD -d 172.16.10.101 -j ACCEPT
The first 2 rules match all GRE packets between the pptpd server and client, and the next rules - the traffic between the server and the client.
When I turn the counters to zero and begin to generate traffic (to browse, to download etc.) I see that the GRE packets are even more than these in the FORWARD chain.
So, my question is first of all is my test correct and is it true that so much gre traffic is being generated during the browsing (it becames clear that the traffic is double than if the pptpd wasn't used as a gateway) and if yes - can that traffic be reduced?
View 3 Replies
View Related
Apr 27, 2010
We have something on our network that is reaking havoc with our content filter. I am trying to track it down, but so far I have been unsuccessful. We have approximately 500 devices in 100+ different locations spread across 9 states. Looking at each computer is not really feasible.
I need a machine that can sit in between our network and our internet connection and graphically monitor in real time and logs how much traffic each device is sending and receiving. It would need to sit inline so it has to have two nics and be able to pass traffic. The machine also needs to be transparent. Reconfiguration of our routers or workstations is not an option.
I have used ethereal and wireshark before. Ethereal may be a viable option, but wireshark seems to provide lots of information, but no practical way to make use of it. how to set up the box to be a transparent device on the network that will allow internet bound traffic to flow (freely)?
View 3 Replies
View Related
Jun 17, 2011
I've been using Ubuntu so far. There is a system of launchpad repositories where there are lots of programs available that are not in official repo. I've already added rpm fusion but still I miss many programs that I had on Ubuntu. I found this page and I wonder where I can ask for making rpm's. I need several programs:
No package acidrip available.
No package bombono-dvd available.
No package cdcat available.
[code]....
I now that I can compile from source code but I'm new to linux and it's too difficult for me. I haven't even found program alien on Fedora that allows to install packages from other distributions.
View 8 Replies
View Related
May 19, 2010
I have to midify e1000_main.c and e1000_hw.c for my project.
[Code]...
View 1 Replies
View Related
Apr 4, 2011
I have an upstream source tarball which, by coincidence, already contains a directory named "debian", but which has nothing to do with the "debian" directory for packaging. Assume also that renaming this directory would be difficult, for example because many other parts of the code would need to be modified. On an rpm based system, this poses no problem to the packager, since the rpm build process is driven by an external spec file and never has to modify the original source. What would be the best way to package this on a debian system? Is it absolutely necessary to rename the original "debian" directory? Or can I make the dpkg build tools operate out of a different directory?
View 5 Replies
View Related
Jan 3, 2009
I'm trying to package a Qt application using debuild. However, I can't figure out how to make qmake generate a correct Makefile.
The main problem is that the binary doesn't get put into ./usr/bin inside the .deb.
So dh_shlibdeps always fails and I get the following:
Code: Select alldpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
The resulting debian package then has an empty "depends" field and no binary.
I used the Qt Hello World example application to start.
I changed debian/rules (generated by dh_make) so that it runs qmake as follows:
Code: Select all#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
[code]....
View 6 Replies
View Related
Jan 20, 2010
I have a C++ application consisting of several source/header files. As part of the release management procedure, I use a shell script to package all necessary sources/headers in a tar file for a successful compilation on end-user site.However, for example, each time a new directory is created within application's source tree, I need to edit the shell script to implement necessary changes, which is error-prone.What is the best practice to package the source/header files of an application into a tar file ? Is there any tool that I can use for packaging purposes rather than writing my own shell scripts ? For example, how is Linux kernel itself packaged into a tar file ?
View 2 Replies
View Related
Mar 16, 2010
Recently I started getting pop-up saying:
Code:
Failed to initialize
Failed to initialize packaging backend
This may occur if other packaging tools are being used simultaneously.
under more details i get:
Code:
There are unfinished transactions remaining. Please run yum-complete-transaction as root. I get to terminal, and as a root I try yum-complete-transaction, but it just says there are no unfinished transactions left. I tried to update thru yum, but this is what I get:
Code:
# yum update
Loaded plugins: fastestmirror, presto, refresh-packagekit
Determining fastest mirrors .....
After lots of googling, I tried:
"yum clean all",
"yum-comlete-transaction",
"rm -f /var/lib/rpm/__db*" + "rpm -vv --rebuilddb" + "yum clean all",
Everything else is working well, and I am able to update with "--skip-broken", but I keep getting this pop-ups. I use fedora 12.
View 5 Replies
View Related
Oct 27, 2015
How can I use the preinst script to check to see if the version that is installed older than the version trying to be installed and if so, take an action?
For example: if the software installed is at a version less than 6.14 then take an action, else return 0?
preinst:
Code: Select allset -e
case "$1" in
install|upgrade)
# if version installed <6.14 then do something else return 0
;;
[Code] ....
View 0 Replies
View Related
Feb 26, 2010
I have error in KPackageKit when i try to install anything or check for updates:
Failed to initialize packaging backend. This may occur if other packaging tools are being used simultaneously.
Details: There are unfinished transactions remaining. Please run yum-complete-transaction as root.
I don't know anything about other packaging tools - I think I don't using any. Yum works fine in terminal. Reinstall PackageKit and KPackageKit files doesn't helped me. I also try to rebuilt rpm db:
rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb
yum clean all
I'm using Fedora 12 x86_64.
View 12 Replies
View Related
Jan 15, 2010
" p, li { white-space: pre-wrap; }Cannot get the exclusive lock on the packaging backend. Please close any other legacy packaging tools that may be open." I cannot update anything, and I haven't opened another package downloader. The only one open is KpackageKit. Please help, is this a big or have a I got a virus or something? I don't know what information is needed so if I need to expand tell me what I need to retrieve and ill post it.I'm not good with Kubuntu problems.
View 2 Replies
View Related
Jul 14, 2011
I've got a CentOS 5.2 installation with broken package system. When I try to do "yum update" I get lots of "Missing Dependency" errors. How could I restore it to a usable state?
View 6 Replies
View Related
Apr 12, 2014
I have written a shared library and successfully used debhelper 9 to create a Debian package from source using a Makefile generated by cmake. I then went about writing a python wrapper to that library and wish to package that wrapper in with the library so I can have a single distributable rather than 2 separate ones.
All of my attempts so far have me placing my python source and a setup.py file in the same directory as the makefile at the time where I call debuild.
From here I have tried a couple different configurations to my debian/rules file as seen below:
Attempt 1:
# -*- makefile -*-
%:
dh $@ --with-python2 --buildsystem=python_distutils
This try seemed to package up the python stuff nicely but proceeded to ignore my makefile for the shared library and therefore ultimately failed.
Attempt 2:
# -*- makefile -*-
%:
dh $@ --with-python2
This try ran make, but completely ignored the python stuff. From some research I have gathered that the --buildsystem flag tells debuild to ignore any makefiles in the directory, which obviously causes a problem in my case.
Another attempt was to modify the build dependency to first run make and then call the python build process that file looked like this
Attempt 3:
# -*- makefile -*-
build:
dh $@
dh $@ --with-python2 --buildsystem=python_distutils
%:
dh $@ --with-python2 --buildsystem=python_distutils
This appears to somewhat work as both processes do build, but a few of the python files are still not getting installed.
Is this the way I should be going about doing this? I've noticed that most python wrappers tend to package themselves individually and then make that package dependent on the library it is attempting to wrap.
View 0 Replies
View Related
Feb 5, 2010
Attempting to upgrade Firefox to 3.6. On opening synaptic package manager I get :-
An error occurred
E: dpg was interrupted, you must run 'dpkg--configure-a' to correct the problem.
E:_cache->open()failed,please report.
On entering 'dpkg--configure-a' on terminal I get 'command not found.
View 5 Replies
View Related
May 11, 2010
I've succesfullly connected to my vpn with kvpnc, but none of my traffic is going through the vpn! I dont know how to route traffic to the vpn. for instance, when I go to whatsmyip.com it still has my previous ip.
View 1 Replies
View Related
Jul 11, 2010
I have a comcast business network adapter that has a 4 port switch. It also handles nat 1 to 1 translation for static IPs (That's just how they do it, there is no other choice).
In port 1, I have a cat6 that brings traffic to and from my linux machines, allows me to vpn, ssh, a mail server, etc. Everything here is fine.
In port 2, I have a netgear router that is setup with a point to point VPN for a client.
Here are the issues:
1. Machines that are connected to the netgear vpn router/switch can access machines on my network - I don't want this.
2. I can't access the machines connected to his lan from my lan - I need this to administer his machines somehow. Even if I have to VPN to the concentrator and do it like that.
Here is the network structure.
Code:
Internet <-> 10.10.10.1 -> switch with 10.10.10.x machines
|
-> internal vpn IP 10.10.10.50
|
[Code]....
The external network for the VPN is 10.10.10.x and the internal is 10.10.20.x. So, a machine with IP 10.10.20.100 can get to 10.10.10.X and I don't want that. I guessing it's doing this because technically, I'm 'from the internet' on 10.10.10.x and the vpn machines are going 'out to the internet'. Is there a way to have this:
vpn -> gateway traffic only?
I have a cisco 1811w at my disposal if I need to use it; however, I'm all thumbs when it comes to cisco IOS and networking in general.
View 4 Replies
View Related
Dec 1, 2010
I'm trying to inspect network traffic from my iPhone / iPad / Kindle / other wi-fi only consumer electronic device. To do this I man-in-the-middle myself (connect laptop to LAN via wire, create wireless Ad-hoc network, bridge the connections, then connect my device to the ad-hoc wi-fi network) and use Wireshark to watch the traffic.
In the past this has been adequate for my needs (just wanted to watch and see what potentially private info was being leaked about me / see that banking / amazon / etc apps were going over SSL). Now I've noticed that applications are almost all using SSL (which is great) but they are way to active for my taste. I'd like to use these apps but want to know what's happening in the background. I know that corporations dead-end SSL connections at their proxys to inspect the traffic and then re-establish the connection on behalf of the user for the trip across the internet. While I find the corporate use a bit distasteful, I think this is exactly what I'd need to do to myself. Any suggestions for how to do so or other ideas on how to get the packets in the clear?
View 3 Replies
View Related
Oct 19, 2010
How are packets treated that do not match any of the filters?
View 4 Replies
View Related
Feb 23, 2011
I want to simulate video traffic in ns2.31 .I have added mpeg4_traffic patch in Contributed codes in NS2 web site . I receive segmentation fault error ,when I debug code I got a lot of error ,I don't know what to do ? does no one know how should transmit video in ns2 ??
View 14 Replies
View Related
Mar 15, 2010
From the GUI, software update gives the error "Failed to Initialize - Failed to initialize the packaging backend. This may occur if other packaging tools are being used simultaneously." In the more details, "There are unfinished transactions remaining.
I run a terminal, switch to root and do as it tells me. It returns saying that there are no unfinished transactions. I've run it several times with the same result. Then I run "yum clean all" and "yum upgrade." The upgrade processes runs and reports "there are unfinished transactions..." However, the upgrade process still completes. Basically it is now a severe annoyance, but the system does seem to upgrade. I just cannot figure out why there are somehow unfinished transactions that I cannot get rid of. I tried reinitializing the rpm database - no luck. How can I somehow reset yum?
View 2 Replies
View Related
Apr 2, 2010
I have ubuntu server with PPTP on it. I need to limit single connection speed for ip 1 mbit/s, and mounthly traffic limit to 5 GB. How i can do this my task. I try to find somthing with ip tables, but can't find how to creat mounthly limits.PPTP do not have this option, maybe is some other, not hard for configure VPN server? Maybe someone make this task with iptables, and can give commands for limiting? Ofcorse VPN program with integrated accaunts and limits will be better.
View 1 Replies
View Related
Feb 2, 2011
I've got 4 or 5 of these TRENDnet USB network adapters ( TU-ET100c ) that I use frequently when I'm configuring firewalls or IPS devices for customers. I use them in combination with VirtualBox to test. They've always worked great until my new laptop I just got, and I put 10.04 on it. Previously I was on 9.x. Sometimes they will give a link light, other times not. And when they do the interface shows that it's up, but I can't get any traffic across the interface.
[code]...
View 3 Replies
View Related
Mar 1, 2011
I have access to a VPN I use when having confidential instant messaging sessions. For the purposes of my work, essentially.I'm a command line kind of guy, and like to use Finch (the shell version of Pidgin) for those.However, when I turn on my OpenVPN connection it routes all traffic through the VPN. Web-browsing, IMing, and I can no longer access other machines on my home network.Can I set OpenVPN to only route traffic I ask through that connection (either by port number or application, or some way I haven't thought of), while other traffic flows through my usual home network?Some kind of local proxy perhaps? Or a dd-wrt box set up as a proxy, connected to OpenVPN?I've played around with the GUI environment too (I have a basic GUI I sometimes use on my main machine) and have installed the full desktop 10.10 on a second machine just to see if I can work it out.
View 2 Replies
View Related
Jun 30, 2011
I have a VPN account and have been running it perfectly on windows without any problems but I deleted my windows OS because I wanted to force myself to learn a Linux OS. I have installed the configuration package through the terminal and have followed this guide exactly
[URL]
The VPN was giving me a no secrets error to start off but I managed to fix and now it connects for about 40seconds but whilst it is connected, the internet is completely useless and I can't get on anything... It then disconnects after 40 seconds saying it has failed.
I installed firestarter to see if I could tweak it there to work but it was beyond me and I could also see from the data being sent that none of it was going through tap0 whilst the VPN was connected..
View 3 Replies
View Related
Feb 18, 2010
I have done some research on the net and I am battling to find effective methods in other to bypass those irritating ISP traffic shapers. I have used SSH tunneling to reduce latency (which is my primary goal, i dont care about silly torrents, etc) by about 200ms.
Do you know of any other way that I could improve this latency? When I ping my server in Germany (from South Africa) i get a latency of about 185ms... I was hoping to get online gaming traffic to around about 250ms or even less if possible... Right now its sitting on 550ms WITH SSH tunneling and 800ms without it... (to Blizzard servers)
View 3 Replies
View Related