a) ICMP is stateless. So defining the state is senseless
b) ICMP Subtype 8 is echo Request, which you correctly defined on the INPUT Chain. ICMP Subtype 0 is "echo Reply" which is regulated at the OUTPUT chain since it is sent from the local host to the pinging party
c) Defining source -s 0/0 is of no use. Omit that and you have no restriction of source addresses.
d) I would assume the module icmp is automatically loaded when you specifiy -p icmp, so you can omit this too.
You can trace your paket filter more closely with additional log-rules before and after important Rules in your filter-definition.
Oh. Wait. I misunterstood. iptables is the pinging party....
Hi,
I want to enable hibernate in my machine.
when i click hibernate option, it is throwing message that hibernate is not enabled in kernel.
earlier, i was hibernating in the same machine with windows os.
any idea ?
Thx in advance.
Siva (0 Replies)
Hello everyone,
I installed AIX the other day (several times!) but I can't get XDMCP to work.
I remember from when I installed it the last time it worked out of the box.
So why doesn't it work now?
This is the error message I get:
XDMCP fatal error: Session failed Session 2 failed for... (3 Replies)
Hi,
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 152.155.180.8 30
Sending 30 Ping Packets to 152.155.180.8
!!!!!!!!!!!!!.!!!!!!!!!!!!!!!.
% 93.33 success... % 6.66 packet loss...... (1 Reply)
Hi
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
if ($p->ping($host,1)){
print "$host is alive.\n";
}
else {
print "$host is unreacheable.\n";
}
$p->close();... (4 Replies)
Hi Folks!
I am writing a script which changes lpfc.conf if there it has been setup on RHEL BOXes, do I need to put dracut -f for enabling it? I am not sure,
Can someone help! (6 Replies)
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
HOSTS="192.168.138.155"
COUNT=4
pingtest(){
for myhost in "$@"
do
ping -c "$COUNT" "$myhost" &&return 1
done
return 0
}
if pingtest $HOSTS
#100% failed... (4 Replies)
I have installed the "mipsel tuxbox" compile suite for crosscompile
Host system is x86_64 slackware
destination is mipsel32bit "vuduo+"
For example,I want to compile a program, I use this script
make clean
export TOOLCHAIN=/opt/mipsel-tuxbox-linux-gnu
export... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
LEARN ABOUT DEBIAN
shorewall-tcfilters
SHOREWALL-TCFILTERS(5) [FIXME: manual] SHOREWALL-TCFILTERS(5)NAME
tcfilters - Shorewall u32 classifier rules file
SYNOPSIS
/etc/shorewall/tcfilters
DESCRIPTION
Entries in this file cause packets to be classified for traffic shaping.
Beginning with Shorewall 4.4.15, the file may contain entries for both IPv4 and IPv6. By default, all rules apply to IPv4 but that can be
changed by inserting a line as follows:
IPV4
Following entries apply to IPv4.
IPV6
Following entries apply to IPv6
ALL
Following entries apply to both IPv4 and IPv6. Each entry is processed twice; once for IPv4 and once for IPv6.
The columns in the file are as follows (where the column name is followed by a different name in parentheses, the different name is used in
the alternate specification syntax).
CLASS - interface:class
The name or number of an interface defined in shorewall-tcdevices[1](5) followed by a class number defined for that interface in
shorewall-tcclasses[2](5).
SOURCE - {-|address}
Source of the packet. May be a host or network address. DNS names are not allowed.
DEST - {-|address}}
Destination of the packet. May be a host or network address. DNS names are not allowed.
You may exclude certain hosts from the set already defined through use of an exclusion (see shorewall-exclusion[3](5)).
PROTO - {-|protocol-number|protocol-name|all}
Protocol.
DEST PORT (dport) - [-|port-name-or-number]
Optional destination Ports. A Port name (from services(5)) or a port number; if the protocol is icmp, this column is interpreted as the
destination icmp-type(s).
SOURCE PORT (sport) - [-|port-name-or-number]
Optional source port.
TOS (Optional) - [-|tos]
Specifies the value of the TOS field. The tos value can be any of the following:
o tos-minimize-delay
o tos-maximuze-throughput
o tos-maximize-reliability
o tos-minimize-cost
o tos-normal-service
o hex-number
o hex-number/hex-number
The hex-numbers must be exactly two digits (e.g., 0x04)x.
LENGTH - [-|number]
Optional - Must be a power of 2 between 32 and 8192 inclusive. Packets with a total length that is strictly less than the specified
number will match the rule.
EXAMPLE
Example 1:
Place all 'ping' traffic on interface 1 in class 10. Note that ALL cannot be used because IPv4 ICMP and IPv6 ICMP are two different
protocols.
#CLASS SOURCE DEST PROTO DEST
# PORT
IPV4
1:10 0.0.0.0/0 0.0.0.0/0 icmp echo-request
1:10 0.0.0.0/0 0.0.0.0/0 icmp echo-reply
IPV6
1:10 ::/0 ::/0 icmp6 echo-request
1:10 ::/0 ::/0 icmp6 echo-reply
FILES
/etc/shorewall/tcfilters
SEE ALSO
http://shorewall.net/traffic_shaping.htm
http://shorewall.net/MultiISP.html
http://shorewall.net/PacketMarking.html
http://shorewall.net/configuration_file_basics.htm#Pairs
shorewall(8), shorewall-accounting(5), shorewall-actions(5), shorewall-blacklist(5), shorewall-ecn(5), shorewall-exclusion(5),
shorewall-hosts(5), shorewall_interfaces(5), shorewall-ipsets(5), shorewall-maclist(5), shorewall-masq(5), shorewall-nat(5),
shorewall-netmap(5), shorewall-params(5), shorewall-policy(5), shorewall-providers(5), shorewall-proxyarp(5), shorewall-rtrules(5),
shorewall-routestopped(5), shorewall-rules(5), shorewall.conf(5), shorewall-secmarks(5), shorewall-tcclasses(5), shorewall-tcdevices(5),
shorewall-tos(5), shorewall-tunnels(5), shorewall-zones(5)NOTES
1. shorewall-tcdevices
http://www.shorewall.net/manpages/shorewall-tcdevices.html
2. shorewall-tcclasses
http://www.shorewall.net/manpages/shorewall-tcclasses.html
3. shorewall-exclusion
http://www.shorewall.net/manpages/shorewall-exclusion.html
[FIXME: source] 06/28/2012 SHOREWALL-TCFILTERS(5)