Displaying 5 results from an estimated 5 matches for "port_http".
2006 Aug 29
0
question on lokkit
...nfig file
with an entry like this: ( i dont want to manually edit it - I want to
do it automatically)
iptables -A INPUT -p udp -m udp --dport 10000:20000 -j ACCEPT
I have a small script file that has in it the ports I want enabled, like:
-------------------
PORT_SSH="--port=22:tcp"
PORT_HTTP="--port=http:tcp"
/usr/sbin/lokkit -q --high --dhcp -t lo -t eth0 -t eth1 $PORT_SSH $PORT_HTTP
-------------------
I want to add another line to enable ports 10000 - 20000.
however the ":tdp" or ":udp" conflict with 10000:20000.
I tried useing something like "1...
2005 Jan 02
0
Performance Loss with HTB/tcng?
...ternal interface):
$INT="eth1";
$INT_NET=192.168.1.0;
$MAX_IN=2Mbps;
dev $INT {
egress {
class (<$int>) if ip_src:24 == $INT_NET;
class (<$ssh>) if tcp_sport == PORT_SSH;
class (<$smtp>) if tcp_sport == PORT_SMTP;
class (<$http>) if tcp_sport == PORT_HTTP;
class (<$http>) if tcp_sport == PORT_HTTPS;
class (<$nntp>) if tcp_sport == PORT_NNTP;
class (<$nntp>) if tcp_sport == PORT_NNTPS;
class (<$other>) if 1;
htb() {
class (rate 100Mbps, ceil 100Mbps) {
class (rate $MAX_IN, ceil $MAX_IN) {...
2004 Aug 04
0
simulating RED using tcsim question
...n from router
host {
dev output_eth0 10 Mbps
dev output_eth1 100 Mbps
route 10.0.0.2 netmask 255.0.0.0 output_eth1
}
connect inputA_eth0 router_eth0
connect inputB_eth0 router_eth1
connect router_eth2 output_eth0
every 0.002s until 5s send inputA_eth0 TCP_PCK($tcp_sport = PORT_HTTP);
every 0.002s until 5s send inputB_eth0 TCP_PCK($tcp_sport = PORT_SSH);
time 6s
end
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2004 Oct 23
0
error making htb example
...election path, the filters come first! DSmark */
class ( <$ssh> ) if tcp_sport == 22 && ip_tos_delay == 1 ;
class ( <$audio> ) if tcp_sport == 554 || tcp_dport == 7070 ;
class ( <$bulk> ) \
if tcp_sport == PORT_SSH || tcp_dport == PORT_HTTP ;
class ( <$other> ) if 1 ;
/* section in which we configure the qdiscs and classes */
htb () {
class ( rate 600kbps, ceil 600kbps ) {
$ssh = class ( rate 64kbps, ceil 128kbps ) { sfq; } ;
$audio = class ( rate 128kbps,...
2007 Apr 25
0
problem with prio qdisc and tcng
...de "fields.tc"
#include "ports.tc"
#define X16(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...