search for: ip_dst

Displaying 20 results from an estimated 22 matches for "ip_dst".

Did you mean: mp_dst
2002 Mar 20
1
RMySQL integer range bug (PR#1400)
...ssion from: (NULL) (131.220.6.43) There is a bug when retrieving values out of MySQL (3.23.36) which are of type UNSIGNED INTEGER(10). The values can vary between 0 and 2^32 but R only accepts those below 2^31-1. Anything above goes as 2^31-1. thats what one gets: print(quickSQL(con,"select ip_dst from iphdr where ip_dst>=2212233216 limit 5")) ip_dst 1 2147483647 2 2147483647 3 2147483647 4 2147483647 5 2147483647 and thats what the numbers really are (conversion to character type first): print(quickSQL(con,"select concat(ip_dst) from iphdr where ip_dst>=2212233216 lim...
2004 Aug 05
6
TC-ng questions/problems
...s, ceil 5Mbps ) ; $upload84 = class ( rate 712kbps, ceil 712kbps ) ; $others = class ( rate 18Mbps , ceil 18Mbps ) ; } } } } /* This section is about downloading to the 83 network */ dev LAN83 { egress { class ( <$downloadRouter> ) if ip_dst == 192.168.83.1; class ( <$downloadGKS> ) if ip_dst == 192.168.83.22; class ( <$download> ) if ip_dst:24 == 192.168.83.0; class ( <$others> ) if 1 ; htb () { class ( rate 18Mbps, ceil 18Mbps ) { $downloadRouter...
2004 Jun 07
0
Hierarchy of HTBs
...; #include "ports.tc" #define INTERFACE eth0 dev INTERFACE { egress { /* In class selection path, the filters come first! */ /* I don''t recall the ip addresses, but you can tell where I''m going with ''em */ class ( <$local> ) if ip_dst == 10.0.0.0/8 ; class ( <$external> ) if ip_dst != 10.0.0.0/8 ; class ( <$vpn> ) if ip_dst == 192.168.100.0/24 || \ ip_dst == 192.168.101.0/24 ; class ( <$lpr> ) if tcp_dport == PORT_PRINTER || \ tcp_dport...
2006 May 28
0
TCNG HTB Branching the class not working. (bug or what)
...I find tcng somewhat easy to use (although lack proper doc. of its usage). I want to control traffic of several IP Addresses connected to my LANSIDE. What I want is , i want to separate certain bandwidth to all my clients. dev "etho" { htb() { class ( rate 400kbps, ceil 400kbps) if ip_dst == 192.168.0.9 class ( rate 400kbps, ceil 400kbps) if ip_dst == 192.168.0.10 ..... and so on for every IP. } It compiles and work well with no syntax error. However For each IP I want to prioritize the traffic. Say, priority 1 for http traffic and priority 2 for other, each host limiting withi...
2006 Jul 11
0
tcng not working as expected
...Rajendra. #include "fields.tc" #include "ports.tc" #define LANSIDE eth0 #define WANSIDE eth1 /*######### Shape DOWNLOAD Traffic ############*/ /*#############################################*/ dev LANSIDE { egress { class ( <$client1_a> ) if ip_dst == 10.10.10.24; class ( <$client1_b> ) if ip_dst == 10.10.10.22; class ( <$client2> ) if ip_dst == 10.10.10.23; htb() { //Total Bandwidth class (rate 50kBps, ceil 50kBps) { //VIP clients...
2004 Jul 14
1
tcng/tc setup
...dsl 300kbps/2 #define lowadsl 200kbps/2 #define intadsl 150kbps/2 #define vloadsl 100kbps/2 #define noadsl 50kbps/2 dev INTERNET { $meter = trTCM( cir 128kbps, cbs 10kB, pir 200kbps, pbs 10 kB ); egress { class(<$lanssh>) if tcp_sport == 22 || tcp_dport == 22 if ip_src == LAN_IP || ip_dst == LAN_IP; class(<$dmzssh>) if tcp_sport == 22 || tcp_dport == 22 if ip_src == DMZ_IP || ip_dst == DMZ_IP; class(<$ssh>) if tcp_sport == 22 || tcp_dport == 22 if ip_tos_delay==1 ; class(<$smtp>) if tcp_sport == 25 || tcp_dport == 25; class(<$lanhttp>)...
2006 May 29
3
TCNG HTB priority and bandwidth
Hi, I have several users on the lanside each allocated separate IP addresses. I need to allocate th traffic to each IP addresses certain portion of total uplink. Say, 192.168.0.2 rate 128kbps, ceil 128kbps. 192.168.0.3 rate 65kbps, ceil 128kbps 129.168.0.4 rate 64kbps, ceil 64kbps. and so on.... Also, for each user i would like to prioritize the traffic within the allocated bandwidth. say for
2012 Apr 25
1
forwarding packets to service in same host without using loopback network
...ad (tb, &data); if (ret >= 0) printf ("payload_len=%d ", ret); fputc ('\n', stdout); return id; } static int cb (struct nfq_q_handle *qh, struct nfgenmsg *nfmsg, struct nfq_data *nfa, void *data) { uint32_t ip_src, ip_dst; struct in_addr s_ip; struct in_addr d_ip; uint16_t src_port; uint16_t dst_port; int verdict; int id; int ret; unsigned char *buffer; struct nfqnl_msg_packet_hdr *ph = nfq_get_msg_packet_hdr (nfa); if (ph) { id = ntohl (p...
2004 Apr 20
1
[patch] Raw sockets in jails
Although RAW sockets can be used when specifying the source address of packets (defeating one of the aspects of the jail) some people may find it usefull to use utilities like ping(8) or traceroute(8) from inside jails. Enclosed is a patch I have written which gives you the option of allowing prison-root to create raw sockets inside the prison, so
2006 Jun 23
2
TCNG question
Hey all, i have a class. class ( <$call1> ) if ip_dst == 10.100.1.6 && tcp_dport == 22 if ip_src == 10.100.1.4 && tcp_sport == 22 ; Now when i apply this traffic TO 6 on port 22 is indeed limited to the speed i specify BUT it doesn''t seem to take the src into account at all. If i change the src t...
2003 Oct 03
0
SIGBUS on SPARCv9
...; struct in_addr ip_src; @@ -186,7 +188,7 @@ cp(); - hdr = (struct ip *)(packet->data + 14); + phdr = (struct ip *)(packet->data + 14); icmp = (struct icmp *)(packet->data + 14 + 20); /* Remember original source and destination */ @@ -217,7 +219,9 @@ memcpy(&hdr->ip_dst, &ip_src, 4); hdr->ip_sum = inet_checksum(hdr, 20, ~0); - + + memcpy(phdr, hdr, sizeof(*phdr)); + /* Fill in ICMP header */ icmp->icmp_type = ICMP_DEST_UNREACH;
2003 May 26
0
ip_input.c
Hi, secfolks. While reading ip_input.c I have met following lines: ;------------------------------------------------- /* 127/8 must not appear on wire - RFC1122 */ if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET || (ntohl(ip->ip_src.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET) { if ((m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) == 0) { ipstat.ips_badaddr++; goto bad;...
2007 Feb 19
0
Absolute Maximal Bandwidth
...pt (might contain typos): dev eth0 { ingress { $inpolicer = SLB ( cbs 100kB, cir 200Mbps ); class (<$whatever>) if SLB_ok ($policer); drop if 1; /* Drop the traffic exceeding the 200mbit rate */ } egress { $egpolicer = SLB (cbs 100kB, cir 200Mbps ); class (<$ftp>) if (ip_dst == 10.1.1.1 && tcp_dport == 21 && SLB_ok ($egpolicer)); class (<$web>) if (tcp_dport == 80 && SLB_ok ($egpolicer)); class (<$oth>) if SLB_ok ($egpolicer); /* classify to oth if max bw not exceeded */ drop if 1; /* I assume we reached max bw if we get here?...
2004 Sep 18
0
TCNG syntax for ingress / policing questions
...find people say don''t but I have not found a why? 2. I have the egress below working (numbers in example are bogus, I know). How do I add an ingress policy? /* compile this file with tcc filename > limit.sh and run that file */ dev eth1 { egress { class ( <$myhost> ) if ip_dst == 172.31.0.2; class ( <$others> ) if 1 ; htb () { class ( rate 2048kbps, ceil 2048kbps ) { $myhost = class ( rate 1024kbps, ceil 1024kbps ) ; $others = class ( rate 10bps, ceil 500kbps ) ; } } } } Groeten,...
2004 Sep 21
1
TCNG compilation/translation bug/question
Hi all, The following ingress statement: .... $host2 = SLB(cbs 1024kb, cir 2048kbps); class(<>) if ip_dst == 81.175.84.2 && SLB_else_drop($host2); .... is compiled by TCNG into the folling tc command: ... tc filter add dev eth0 parent ffff:0 protocol all prio 1 u32 match u32 0x51af5402 0xffffffff at 16 classid ffff:0 police index 505 rate 256000bps burst 131072 mpu 0 action drop/pass ... (BT...
2004 Sep 23
0
Re: did you manage to solve dst cache overflow ?
...happen. If it doesn''t help go keep mailing me :). No i didn''t overcome my problem yet. But I''m close. I did what i sad in the first line of my mail and it help for some time. I think htb has some kind of defect when using ds_mark. When I were shaping download only using ip_dst it were working great but when i started using ds_mark to shape upload this bad things started to happen. Today I''ve splitted making NAT and shaping on two boxes so I can do ip_src in htb and then when the traffic is already shaped I can NAT it. If it works we will se. Good luck. ----- Ori...
1999 Mar 25
0
(Fwd) DoS for Linux 2.1.89 - 2.2.3: 0 length fragment bug
...000 /* more fragments flag */ #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ unsigned char ip_ttl; /* time to live */ unsigned char ip_p; /* protocol */ unsigned short ip_sum; /* checksum */ unsigned long ip_src, ip_dst; /* source and dest address */ }; struct my_udp_header { unsigned short uh_sport; unsigned short uh_dport; unsigned short uh_ulen; unsigned short uh_sum; }; #define IHLEN (sizeof (struct my_ip_header)) #define UHLEN (sizeof (struct my_udp_header)) #ifdef __OpenBSD__ #define EXTRA 8 #else #de...
2004 Jan 26
0
Solaris 9 compile errors, samba 3.0.2rc1
...34: security/_pam_macros.h: No such file or directory configure:5955: $? = 1 configure: failed program was: #line 5945 "configure" In file included from configure:6501: /usr/include/netinet/ip.h:61: error: field `ip_src' has incomplete type /usr/include/netinet/ip.h:61: error: field `ip_dst' has incomplete type /usr/include/netinet/ip.h:134: error: field `ipt_addr' has incomplete type configure:6476: $? = 1 configure: failed program was: #line 6466 "configure" configure:6618:17: nss.h: No such file or directory configure:6628: $? = 1 configure: failed program was: #...
2007 Apr 25
0
problem with prio qdisc and tcng
...(i) i i i i i i i i i i i i i i i i dev ppp0 { dsmark { prio(bands 6, priomap X16($be)) { class if ip_proto == IPPROTO_UDP; class if tcp_dport == PORT_TELNET; class if tcp_dport == PORT_HTTP; class if tcp_dport == PORT_SMTP; class if ip_dst == 10.0.10.10; $be = class(6); } } } The tc-Code looks like this: # ================================ Device ppp0 ================================ tc qdisc add dev ppp0 handle 1:0 root dsmark indices 64 set_tc_index tc qdisc add dev ppp0 handle 2:0 parent 1:0 prio ba...
2007 Apr 25
3
PPPoE and shaping
Hi all, I have a little problem with my home-made slackware linux server. Here is the scenario: 1. I have a local wifi network 2. my server do masquerading and exit in internet via a PPPoE connection Goals: 1. not use SQUID 2. shaping the traffic with classes 3. emule connection must have minimum priority and a band-limit of 10KBytes/s in uplink (server--->internet) Any idea? Thx, Diego --