Sponsored Content
Special Forums IP Networking Setting up port mirroring on LINUX Post 302243990 by sumitpandya on Tuesday 7th of October 2008 02:07:10 AM
Old 10-07-2008
Linux netfilter/iptables

Netfilter has rich set of modules/functionaliy. I'm sure you will find some useful for you.
LOG, ULOG, NFLOG are few. If you get confused then take help from netfilter mailing-list/community.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Setting SSH port

How can I switch the port which SSH listens on? (1 Reply)
Discussion started by: Spetnik
1 Replies

2. UNIX for Dummies Questions & Answers

Setting com port questions

I have a piece of equipment, a Baytech RPC-3, that I need to communicate with through the com port. I normally use this equipment at home and am able to connect to it without problems using FC5 and minicom; I brought the equipment into work and cannot get my pc, using Suse 10 and minicom to... (0 Replies)
Discussion started by: thumper
0 Replies

3. IP Networking

network speed not tale with the port setting

Hi all, one of my Sun Box facing the problem. The network port i had set to Auto-Negotiated and i had edited the /etc/system/ file in the Sun box as below: set hme:hme_adv_autoneg_cap=1 set hme:hme_adv_100fdx_cap=0 set hme:hme_adv_100hdx_cap=0 But when i checked the /var/adm/messages/, it... (0 Replies)
Discussion started by: AirWalker83
0 Replies

4. Shell Programming and Scripting

setting account (linux)

hi How can I set an account so that it expires at a particular date? (6 Replies)
Discussion started by: tjay83
6 Replies

5. UNIX for Advanced & Expert Users

check remote switch port speed setting

Hi, Someone told me how to check the remote switch port's speed setting on the other end of the cable, from linux. I forgot it. Anyone knows? I checked dmesg, ethtool (haven't checked this out thoroughly) , no luck. thanks, Marc (1 Reply)
Discussion started by: marcpascual
1 Replies

6. IP Networking

Is there any way to add an exception for a port in the firewall setting, permanently?

Hello, I want to add a port in the firewall exception list so that my application can be accessed over network even if firewall is disabled. I am using iptables command to add exception. The problem is, after setting the rule if I change the firewall setting i.e. on/off then it is overwriting... (1 Reply)
Discussion started by: senrooy
1 Replies

7. UNIX for Dummies Questions & Answers

Setting up Linux.

Dear Administrators and Moderators, Normally I use Windows for browsing net, but few days back my pc was affected with virus. One of my friend suggested me to use Linux for safe browsing. I would like to know 1. I have Mandrake 8.2(HDD) and Obuntu 9.x(CD) - which one is better (have limited... (1 Reply)
Discussion started by: kesari
1 Replies

8. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies

9. Red Hat

Setting serial port configuration

I have 1 serial port (9 Pin) attached with my Linux server.If I give $dmesg | grep tty , it provides me the following. ttyS0 and ttyS1. I have 1 COM port with my server mother board. I have 1 customized application that requires this COM port to be used. The parameter to be set for COM port... (4 Replies)
Discussion started by: Anjan Ganguly
4 Replies

10. Red Hat

Serial Port Setting Automatically changes

I am trying to change the setting of serial port baud rate in Red Hat Linux 5.9 by the following command. >> stty 9600 cs8 -parenb -ixon -cstopb -echo -F /dev/ttyS0 The serial port will be used by our custom application in 2 separate servers which are the replica of one another. The port setting... (2 Replies)
Discussion started by: Anjan Ganguly
2 Replies
IPQ_MESSAGE_TYPE(3)					     Linux Programmer's Manual					       IPQ_MESSAGE_TYPE(3)

NAME
ipq_message_type, ipq_get_packet, ipq_getmsgerr -- query queue messages SYNOPSIS
#include <linux/netfilter.h> #include <libipq.h> int ipq_message_type(const unsigned char *buf); ipq_packet_msg_t *ipq_get_packet(const unsigned char *buf); int ipq_get_msgerr(const unsigned char *buf); DESCRIPTION
The ipq_message_type function returns the type of queue message returned to userspace via ipq_read. ipq_message_type should always be called following a successful call to ipq_read to determine whether the message is a packet message or an error message. The buf parameter should be the same data obtained from the previous call to ipq_read. ipq_message_type will return one of the following values: NLMSG_ERROR An error message generated by the Netlink transport. IPQM_PACKET A packet message containing packet metadata and optional packet payload data. The ipq_get_packet function should be called if ipq_message_type returns IPQM_PACKET. The buf parameter should point to the same data used for the call to ipq_message_type. The pointer returned by ipq_get_packet points to a packet message, which is declared as follows: typedef struct ipq_packet_msg { unsigned long packet_id; /* ID of queued packet */ unsigned long mark; /* Netfilter mark value */ long timestamp_sec; /* Packet arrival time (seconds) */ long timestamp_usec; /* Packet arrvial time (+useconds) */ unsigned int hook; /* Netfilter hook we rode in on */ char indev_name[IFNAMSIZ]; /* Name of incoming interface */ char outdev_name[IFNAMSIZ]; /* Name of outgoing interface */ unsigned short hw_protocol; /* Hardware protocol (network order) */ unsigned short hw_type; /* Hardware type */ unsigned char hw_addrlen; /* Hardware address length */ unsigned char hw_addr[8]; /* Hardware address */ size_t data_len; /* Length of packet data */ unsigned char payload[0]; /* Optional packet data */ } ipq_packet_msg_t; Each of these fields may be read by the application. If the queue mode is IPQ_COPY_PACKET and the data_len value is greater than zero, the packet payload contents may be accessed in the memory following the ipq_packet_msg_t structure to a range of data_len. The packet_id field contains a packet identifier to be used when calling ipq_set_verdict. The ipq_get_msgerr function should be called if ipq_message_type returns NLMSG_ERROR. The buf parameter should point to the same data used for the call to ipq_message_type. The value returned by ipq_get_msgerr is set by higher level kernel code and corresponds to standard errno values. BUGS
None known. AUTHOR
James Morris <jmorris@intercode.com.au> COPYRIGHT
Copyright (c) 2000-2001 Netfilter Core Team. Distributed under the GNU General Public License. SEE ALSO
iptables(8), libipq(3). Linux iptables 1.2 16 October 2001 IPQ_MESSAGE_TYPE(3)
All times are GMT -4. The time now is 07:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy