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....
Now I use this rule..same thing.
---------- Post updated at 12:34 PM ---------- Previous update was at 12:32 PM ----------
Quote:
Originally Posted by rbatte1
I think that this is most likely a routing problem. What is your routing table like?
Can you show us the output from ifconfig -a & netstat -rn on both sides? Remember that the target of the ping will have to be able to respond.
Robin
The route is ok..at least I think.
Maybe is bridge causing problems?
I retry tomorrow wirth eth with no bridge.
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 OSF1
icmp
icmp(7) Miscellaneous Information Manual icmp(7)NAME
icmp - Internet Control Message Protocol
SYNOPSIS
#include <sys/socket.h> #include <netinet/in.h>
The following is the socket call for sockets using the IPv4 address format:
s = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
The following is the socket call for sockets using the IPv6 address format: s = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
DESCRIPTION
The Internet Control Message Protocol (ICMP) is the error and control message protocol used by the Internet Protocol (IP) and the Internet
Protocol family. It may be accessed through a raw socket for network monitoring and diagnostic functions. ICMP sockets are connection-
less, and are normally used with the sendto() and recvfrom() functions. The connect() function may also be used to fix the destination for
future packets, in which case the read() or recv() and write() or send() functions may be used.
Outgoing packets automatically have an IP header prepended to them (based on the destination address). Incoming packets are received with
the IP header and options intact.
ERRORS
If a socket operation fails, errno may be set to one of the following values: The socket is already connected. This error occurs when try-
ing to establish connection on a socket or when trying to send a datagram with the destination address specified. The destination address
of a datagram was not specified, and the socket has not been connected. The system ran out of memory for an internal data structure. An
attempt was made to create a socket with a network address for which no network interface exists.
RELATED INFORMATION
Functions: send(2), recv(2)
Files: netintro(7), inet(7), ip(7)
RFC 792, "Internet Control Message Protocol"
RFC 2463, "Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6)" delim off
icmp(7)