Sponsored Content
Top Forums UNIX for Advanced & Expert Users Multi-table iptables Question Post 302912078 by Perderabo on Tuesday 5th of August 2014 03:33:03 PM
Old 08-05-2014
I don't have experience with an IPTABLES configuration that is complex enough to test this. However I can read. It says here "ACCEPT target This built-in target discontinues processing of the current chain and goes to the next table and chain in the standard flow." This is from the book LINUX iptables Pocket Reference.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

multi-network question

Hi, I have a linux machine connected to 2 networks, with devices eth0 and eth1. When I give the command host whatever, how do I now which network is searched for the DNS's ? Is there a default ethernet device for network related commands ? How do I change it ? :confused: (2 Replies)
Discussion started by: mik
2 Replies

2. Programming

Question About Multi-Processed Applications... fork()

Assume we have an application built on *nix that uses fork()...then the processes procedure is going to act as follow: X is considered a parent process (first click on application) Y is considered a child process of X (second click on application) Z is considered a child process of Y (third... (6 Replies)
Discussion started by: f.ben.isaac
6 Replies

3. Red Hat

routing table question

I have below routing table in linux kernel 2.6.9 # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.155.24.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U ... (5 Replies)
Discussion started by: chuikingman
5 Replies

4. IP Networking

DHCP Server on Vxworks multi interface question

Hi, We currently operate a DHCP Server on Vxworks system. It seems that the server is functioning only over the boot interface. While trying to use it on a different interface the DHCP client messages seems to reach the interface but stay without response. From a... (1 Reply)
Discussion started by: zohara
1 Replies

5. UNIX for Advanced & Expert Users

[SOLVED] No INPUT chain on nat table in iptables

Hello, I'm having problem with an iptables rule. It seems that on one of two systems on the nat table, the INPUT chain doesn't exist for some strange reason. I get the error below: # iptables -t nat -A INPUT -j ACCEPT iptables: No chain/target/match by that name. Here is my kernel on... (0 Replies)
Discussion started by: Narnie
0 Replies

6. Shell Programming and Scripting

How to substract selective values in multi row, multi column file (using awk or sed?)

Hi, I have a problem where I need to make this input: nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b look like this output: nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
Discussion started by: nricardo
4 Replies

7. Shell Programming and Scripting

Xml multi parse question

awk -F "" '/<Id>|<id>|<Source>|<source>|<Accession>|<accession>|<TestName>|<testname>/ {print $2, $3}' OFS='\t' Test.xml The above code works great, but lets say I wanted the <Analyte> name (<Name>STAT3). The word <name> is unique so there will be multiple records pulled. Is there a way to... (8 Replies)
Discussion started by: cmccabe
8 Replies

8. Programming

Multi head/multi window hello world

I am trying to write a large X app. I have successfully modified my xorg.conf to setup 4 monitors on an NVIDIA Quatro5200. I am trying to modify a simple hello world application to open a window on three of the four monitors. depending on the changes to loop the window creation section and event... (2 Replies)
Discussion started by: advorak
2 Replies
IPQueue(3pm)						User Contributed Perl Documentation					      IPQueue(3pm)

NAME
IPTables::IPv4::IPQueue - Perl extension for libipq. SYNOPSIS
use IPTables::IPv4::IPQueue qw(:constants); $queue = new IPTables::IPv4::IPQueue(); $msg = $queue->get_message(); $queue->set_verdict($msg->packet_id(), NF_ACCEPT) $queue->set_mode(IPQ_COPY_PACKET, 2048); IPTables::IPv4::IPQueue->errstr; undef $queue; DESCRIPTION
Perlipq (IPTables::IPv4::IPQueue) is a Perl extension for iptables userspace packet queuing via libipq. Packets may be selected from the stack via the iptables QUEUE target and passed to userspace. Perlipq allows these packets to be manipulated in Perl and passed back to the stack. More information on userspace packet queueing may be found in libipq(3). CONSTANTS
Copy Mode IPQ_COPY_META - Copy only packet metadata to userspace. IPQ_COPY_PACKET - Copy metatdata and packet to userspace. Packet Verdicts NF_DROP - Ask kernel to drop packet. NF_ACCEPT - Ask kernel to accept packet and continue processing. ATTRIBUTES
None. METHODS
new( [param => value, ... ] ) Constructor. Creates userspace queuing object and sets the queuing mode. Parameters: protocol copy_mode copy_range The protocol parameter, if provided, must be one of PF_INET or PF_INET6, for IPv4 and IPv6 packet queuing respectively. If no protocol parameter is provided, the default is PF_INET. The default copy mode is IPQ_COPY_META. set_mode(mode [, range]) Set the queuing mode. The mode parameter must be one of: IPQ_COPY_META IPQ_COPY_PACKET When specifying IPQ_COPY_PACKET mode, the range parameter specifies the number of bytes of payload data to copy to userspace. If the range is not provided and the mode is IPQ_COPY_PACKET, the range will default to zero. Typically, a range of 1500 will suffice. This method is called by the constructor. get_message([timeout]) Receives a packet message from the kernel, returning a tainted IPTables::IPv4::IPQueue::Packet object. The optional timeout parameter may be used to specify a timeout for the operation in microseconds. This is implemented internally via the select() syscall. A value of zero or no value means to wait indefinitely. The returned object is a helper object with the following read only attributes: packet_id ID of queued packet. mark Netfilter mark value. timestamp_sec Packet arrival time (seconds). timestamp_usec Packet arrvial time (+useconds). hook Netfilter hook we rode in on. indev_name Name of incoming interface. outdev_name Name of outgoing interface. hw_protocol Hardware protocol. hw_type Hardware media type. hw_addrlen Hardware address length. hw_addr Hardware address. data_len Length of payload data. payload Payload data. Payload data, if present, is a scalar byte string suitable for use with packages such as NetPacket. If the operation timed out, undef will be returned and the errstr() message will be 'Timeout'. See the sample dumper.pl script for a simple example of how this may be handled. set_verdict(id, verdict [, data_len, buf ]) Sets verdict on packet with specified id, and optionally sends modified packet data back to the kernel. The verdict must be one of: NF_DROP NF_ACCEPT close() Destroys userpsace queue context and all associated resources. This is called by the destructor, which means you can just do: undef $queue; instead. errstsr() Class method, returns an error message based on the most recent library error condition and global errno value. EXAMPLE
package example; use strict; $^W = 1; use IPTables::IPv4::IPQueue qw(:constants); my ($queue, $msg); $queue = new IPTables::IPv4::IPQueue(copy_mode => IPQ_COPY_META) or die IPTables::IPv4::IPQueue->errstr; $msg = $queue->get_message() or die IPTables::IPv4::IPQueue->errstr; $queue->set_verdict($msg->packet_id(), NF_ACCEPT) > 0 or die IPTables::IPv4::IPQueue->errstr; CHANGES
o Support for timeouts in get_message() was added in version 1.24. BUGS
None known. COPYRIGHT
Copyright (c) 2000-2002 James Morris <jmorris@intercode.com.au> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. AUTHOR
James Morris <jmorris@intercode.com.au> SEE ALSO
iptables(8) libipq(3) NetPacket(3) The example scripts, passer.pl, passer6.pl and dumper.pl. perl v5.14.2 2011-11-15 IPQueue(3pm)
All times are GMT -4. The time now is 11:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy