General :: Deliberately Introduce A Delay For Incoming UDP Packets?
Aug 9, 2010
I want each packet (that match iptables rule) to be delayed by some fixed time interval. How to to this?
Preudocode: iptables -A INPUT -p udp <more conditions> -j DELAY --delay 50000 # delay UDP packets for 50 milliseconds
Update: @related http://superuser.com/questions/147156/simulating-a-low-bandwidth-high-latency-network-connection-on-linux
View 1 Replies
ADVERTISEMENT
Nov 2, 2010
I am using a NanoStation 2 in Router mode.The NS is connected wirelessly to my neighbor's router and a switch is connect via ethernet to the NS for LAN use.
The past few days I'm trying to use a VoIP client software to connect to my VoIP account.I use Ekiga Softphone to do so, which requires UDP ports 3478-3479 and 5000-5100 to be open.
So I have opened these ports both on my neighbor's router and on the NS.The problem that I'm encountering is that although I manage to register to the VoIP service, when I answer an incoming call the caller is able to hear me, but I'm not able to hear the caller.So I used wireshark and figured that there is no incoming traffic on my end.
I have used many linux VoIP clients with PCs connecting straight forward to an ADSL router and worked perfectly.
View 1 Replies
View Related
Apr 6, 2010
I have a router which makes two ppp connections. PPP0 is my default route and is an uncapped ADSL. PPP1 is a Local Only (South Africa) account which has DNS resolving to its IP. PPP1 allows certain connections in. I want all packets coming in on PPP1 to be marked so that after they have been routed through our local servers they can go back out over PPP1. Both connections use dynamically assigned ip addresses. I want to use PPP0 to make a connection to one of our stores, but when our stores connect to us they will be using PPP1. All packets from these incoming connections will need to be routed back over PPP1.
View 14 Replies
View Related
Oct 30, 2010
Pinging out from my netbook (over wifi, to any host) gets ~0% packet loss. Pinging into it (from any host) gets about 50% packet loss.
The router is a Dlink-DIR615 (rev d, running DD-WRT v24-sp2) but all other hosts on it ping eachother fine. I've tried changing routing, disabling IPv6, using older kernels and using wicd, all with no luck. The wireless connections is at 100% most of the time. This could be a new problem with Maverick, but I may not have noticed it before. I believe this is causing web browsing to be really slow and causing SSH timeouts.
I haven't tried madwifi drivers or nsidwrapper yet.
Edit: just booted into Windows and it has the same problem. Could it be a hardware issue? Also tried with a static IP, with no change.
Strangely, a normal ping gets 50% packet loss, but ping -A gets < 1% loss.
Edit 2: no packet loss at all on eth0.
Code:
# uname -a
Linux hulbert-laptop 2.6.35-23-generic #36-Ubuntu SMP Tue Oct 26 17:03:18 UTC 2010 i686 GNU/Linux
Code:
# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:25:d3:1a:bc:4b
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::225:d3ff:fe1a:bc4b/64 Scope:Link
[Code]....
View 1 Replies
View Related
Mar 9, 2010
I've got a box with 2 interfaces, with IP1 = 192.168.100.1 and IP2 = 10.1.1.1 respectively on them. I've got an iptables rule that looks like:
Code:
iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -d 10.0.0.0/8 -p udp -j SNAT --to-source 10.1.1.1 --random
If I get 2 consecutive packets from the same address and port from 192.168.100.0/24, they get SNAT-ed and come out of the same port on 10.1.1.1. If then I get another packet from the same address and port 10 minutes later, then it gets SNAT-ed, but comes out of a different port on 10.1.1.1. My question is: how can I set the time delay I would like iptables to remember its incoming address/port to outgoing port mappings?
View 3 Replies
View Related
Mar 30, 2011
I have a server that I can only access via SSH (it's located far away) and I would like to secure it by blocking all ports except the ones that I need (which are HTTP and SSH). I still want to be able to make outgoing connections to enable software updates and other things.This is my iptables -L -n :
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:1:21
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:23:79
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:81:65535
code....
In my opinion, this should block all incoming packets except the ones on port 80 and 22, but allow responses to outgoing connections. But a wget http://google.com does not work, it can't establish the connection.
Maybe this is not the best style for iptables rules, but I want to be absolutely sure to not accidently lock myself out from SSH, so I chose not to configure a "block-everything rule".
Does this configuration not enable incoming packets from connections initiated from inside?
View 3 Replies
View Related
Apr 4, 2011
I'm trying to use iptables in order to forward all the incoming packets for port 5555 to port 5556 on the same server (192.168.2.101).
I wrote the following commands:
iptables -A PREROUTING -t nat -i any -p tcp --dport 5555 -j DNAT --to 192.168.2.101:5556
iptables -A FORWARD -p tcp -m state --state NEW -d 192.168.2.101 --dport 5556 -j ACCEPT
View 3 Replies
View Related
Jan 24, 2010
We have a network printer in the my network. This printer ip adress is 10.70.51.162.
and I have a RedHat EL 5,2. And I have been using text mode this linux system. This linux ip adress 10.70.47.130.
Now, I want to use this printer on the this RHEL 5.2. How can i introduce this network printer in the text mode?
View 2 Replies
View Related
Aug 30, 2010
i need to write a program in c that can sniff packets from Ethernet and distinguish RTP packets from Non-RTP packets, i have no idea what should i do
View 9 Replies
View Related
Feb 23, 2011
In MacPorts, the ports I would be looking for are the requested ports. They have a system so that when you install a port, that port is marked as requested. Also if you want to keep a port that was installed as a dependency, you can set it to be requested manually. Does the Debian system have the same functionality? It seems that there are some utilities that get that done..
View 3 Replies
View Related
May 11, 2011
After GRUB 2 comes up (I'm running Ubuntu 10.10) and I choose the OS to boot, there is about a 5 second delay where nothing appears to happen after I make the selection -- no disk activity. It happens consistently every time I boot. Again, this is after I choose the OS to boot, so it shouldn't have anything to do with the standard delay to allow me to choose the appropriate OS.Is there a good way to troubleshoot this and determine what is causing the delay?
View 4 Replies
View Related
Mar 28, 2011
I have ubuntu 10.04 & I telnet to windows vista. Even if I create a hidden process [URL].. from batch file . It seems the process gets killed when I end connection at port 23 to host. Maybe , the hidden process created is still child of current telnet session so tree is killed as session ends. Is there a way to keep process running even after telnet session has ended ?
View 6 Replies
View Related
Feb 8, 2010
i have a linux server runnig oracle applications. i need to access this server from putty using ssh through internet. i did by registering my static ip with the dnydns.org and i am able to connect to the server. but now there is no security to authenticate any user as any one knowing the password can login to it.
i thought of configuring the firewall of linux server but the client ip`s are not static and they change continiously. so thought of keeping one more pc between the server and the router which will do the work of authenticating. but i am confuse as how to configure it to allow the packets coming from the internet after authenticating and to by pass the packets generated from internal LAN?
View 8 Replies
View Related
May 29, 2010
Everytime I try to introduce my password the OS takes every single letter as an 'intro'. If I want to type, for example, 'batman', it will take every single character as an intro and therefore I can't get access to the OS.... what can I do?Btw, all of this began when I was trying to write something in a console. When I tried to type anything in the console was like If I was clicking on the 'close window' button, so I though I was a little bug and I had to restart.
View 9 Replies
View Related
Jun 13, 2011
In a desperate attempt to overcome frequent crashing accompanied by XLog lines that suggest to me that Pulseaudio is the cause, I removed Pulsaudio from my Ubuntu 10.4(LTS) using Software Centre. Now I cannot start up Ubuntu but I can get to Terminal via the Recovery Mode. My question is how can I use Terminal to re-introduce Pulseaudio so that I may get back to where I was, albeit with the random crashes that I have had for many months?
View 1 Replies
View Related
Apr 5, 2010
I have to take two copy of incoming mails on different servers(local & remote). I am using plain server without any panel on it and using sendmail, Dovecot for mail service.Is there a way(any configurations) to take a remote backup for all incoming mails? except configuring forwarder to each mail ID.
View 3 Replies
View Related
Feb 5, 2010
I'm running SuSE 11 with sendmail and dovecot.I'm sending and receiving mail. But as soon as someone sends me a mail with an attachment over 1mg it seems to fail. I have no problem sending big attachments.
View 7 Replies
View Related
Jan 11, 2011
In a office network, how to queue incoming downloads and later, it will be scheduled by priority? Is there any such open source project /tool available? I have heard about squid proxy, but does it allow re scheduling ?
View 1 Replies
View Related
Aug 25, 2009
I want to stop incoming ssh to NIC4 (i.e. eth3) and allow it any other interface. I am using following rule
-A INPUT -s 0/0 -i eth3 -p tcp --sport 1024:65535 --dport 22 -j DROP
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
But unfortunately its not working.
View 1 Replies
View Related
Mar 25, 2011
I'm trying to set up my Thunderbird 3.1.8 (running on Ubuntu 10.04 LTS) to play a .wav file of my choice when new mail arrives. The file I've chosen is 8,8 KB in size and lasts 3 seconds. I've selected the "Play a sound" + "Use the following sound file" options in my Preferences, but only the first second (if that) of the sound gets played - both when I click the "Play" button in the Preferences menu to test it, as well as when receiving mail. Restarting the program with my new settings doesn't help.
Actual question(s):
- Is there a limit on the size/duration of the sound one can use for such a signal in this program?
- Is there any way to modify this limit?
View 2 Replies
View Related
Apr 22, 2011
I am using Ubuntu marvic amd64 10.10. I installed ns-allinone 2.34. then I inserted vbr traffic according to one of forum from this linux " Insertion steps of VBR into NS2.34" I made the following changes
Makefile, line 36 : CC = gcc-4.3
Makefile, line 37 : CPP = g++-4.3
vbr_traffic.cc in ns2.34/tools then Makefile : tools/vbr_traffic.o of 183
then I use the command cd ns-allinone-2.34/ns-2.34/ && mv ns ns234 && make after that I delete the ns. with the new command I run the script with every time puase time 0 and simulation time 200, 10 250, 20 300, 40 400..... with DSR after completion of simulation, when i was try to plot graph between throughputs of receiving bits vs Maximul end to end delay, every time I got the delay more than 90, 100, etc so how can I reduce that problem. I thought problem was in insertion of vbr.
View 1 Replies
View Related
Jan 8, 2010
Request your help in writing a shell script for the following requirement:
1) scan each incoming mail with conditions on sender name and subject
2) scan the mail body for set of characters and email them.
general usage is as follows: I get a mail as follows from: [URL]... subject : Urgent, reply body : name : xyz contact : 12345 the script should mail the following as subject line: n:xyz c:12345 I know procmail is a good option for this, but I'm compelled to use shell script
View 3 Replies
View Related
May 3, 2010
How can I drop or forward a incoming connection from a part of a host like *.alicedsl.de
For example:
The user is connection from *.alicedsl.de on port 12345
So how can I drop this connection or forward to google.com on port 80
View 5 Replies
View Related
Sep 27, 2010
I have a hardware device with two ethernet ports, eth0 and eth1 running Centos 5. Basically my goal is to forward packets from eth0->eth1 and eth1->eth0 as well as get a copy of these packets for analysis. If I set IP routing to do the forwarding then I won't get a copy of the packets for analysis.
View 3 Replies
View Related
May 27, 2011
I've got a computer hooked up to my TV and it seems that all video files have audio that is a fraction too early. The files are fine on my laptop. I wonder if there is a way to delay all sound on the computer to help with this problem.
View 2 Replies
View Related
Dec 5, 2010
I have set up an openvpn server on ubuntu via port tcp 443. The server use a public network and almost every ports are blocked (not 443) So when a client connect to the server, if it send traffic needing a blocked port, the connection cannot been etablished of course. So i d like to know if it is possible to redirect all incoming traffic on the server to an other unblocked port (like 443) to bypass firewall.
I dont think openvpn offer this possibility but maybe with linux it is possible..
View 3 Replies
View Related
Aug 3, 2010
I am using Ubuntu 9.04. Years ago, I did UNIX and DOS line commands, but I am 66 and dim, though my doctor says he still thinks I have my marble.Anyway, my Linux shuts down automatically faster than I want it to.How does one control this?
View 3 Replies
View Related
Feb 17, 2009
I have a computer with a BSD subsystem that is acting as a router to other Windows computers.
On one of my Windows, I have an Apache Web Server that I want people to access from the outside world.
So, I have created an ipfw rule in my router computer that goes like this: ipfw add 100 fwd 10.0.2.2 ip from any to any dst-port 2443
Thing is, nothing happens.
I've tried changing the ServerName in my Apache to match my IP address (which is the destination IP of the incoming packets, I imagine) but still, nothing.
View 1 Replies
View Related
Oct 11, 2010
I would like to watch a baseball game on TV, but listen to the radio broadcast. The TV is about 10 seconds behind the radio, though.Does anyone know a way to delay the input from my radio by 10 seconds and output it again to the speakers? I can do this on Mac OS X or Linux (or even Windows). I have Audio Hijack Pro, but there is no such effect.
View 2 Replies
View Related
Mar 11, 2011
Whenever I login to a certain server using SSH I get a very long delay before a prompt appears. Everything I looked up on this issue says that it's a DNS issue and that I should disable reverse DNS lookups on the server.
But, the remote server is a shared webhosting server. I e-mailed the sysadmins but they say they have no DNS issue and that they won't change the server configuration. So, how can I fix this issue from my side (client side)? I have a static IP address and a hostname that points to it.
View 2 Replies
View Related