search for: fwmark

Displaying 20 results from an estimated 327 matches for "fwmark".

2003 Mar 04
2
Routing based on fwmark
I''m having trouble routing on high fwmarks, I want to use a lot of different marks for 2 routes so that I can QoS based on the marks ip rule looks like this: 0: from all lookup local 32751: from all fwmark 31 lookup dslout 32752: from all fwmark 30 lookup dslout 32753: from all fwmark 29 lookup dslout 32754: fr...
2004 Nov 23
4
how to remove rules
hi I have trying to remove the extra rules from my routing tables, however with no luck Also I want to know these duplicate entries have an effect on packets going routed? I have this overwhelming rules lists from my predessor who added the "ip rule add fwmark" entries in firewall script, and on each run of firewall script its creates an extra entry in routing table. Now what I want to get rid of an extras "from all fwmark 0x2 lookup squid.out" leaving only one that what''s I needs. here is the output of "ip rule ls" 0...
2004 Nov 23
2
ip rule to remove
...ip del rule pref 32742" is syntically wrong :) and when i tried "ip rule del 32742" it gives me error # ip rule del 32742 Error: argument "32742" is wrong: Failed to parse rule type so how to get get of these extra rules? 0: from all lookup local 32742: from all fwmark 0x2 lookup squid.out 32743: from all fwmark 0x2 lookup squid.out 32744: from all fwmark 0x2 lookup squid.out 32745: from all fwmark 0x2 lookup squid.out 32746: from all fwmark 0x2 lookup squid.out 32747: from all fwmark 0x2 lookup squid.out 32748: from all fwmark 0x2 lookup squid.out 32749:...
2003 Sep 18
0
hexadecimal fwmark and fwmark mask
...ce I tried to use this marks in the RPDB : the packets where successfully marked, but it seemed that RPDB didn''t succed in matching them (for those who already know the answer, I only used marks above 9). After googling a while, I found that ip(8) only accepts hexadecimal numbers for "fwmark" statement. IMHO, I think that allowing only hexadecimal values in ip(8) while iptables(8) allows to either use decimal or hexadecimal value is quite inconsistent. I checked ip(8) sources, and here is the point : } else if (strcmp(*argv, "fwmark") == 0) { __u...
2003 Mar 01
2
Virtual Routers would this work?
...interfaces 1 interface setup with a public IP address ($PUBIP) 1 interface setup with 802.1q VLAN trunking with 100 vlans assigned ($VLAN1-$VLAN100) a /25 subnet routed to $PUBIP from my core routers All $VLAN interfaces setup with IP 192.168.1.1/24 Inbound traffic on $VLAN gets marked with a fwmark ($VLAN1 = fw1, $VLAN2 = fw2) Outbound traffic gets NAT''ed based on the fwmark to an IP in the subnet Returning traffic gets marked based on the dest IP (one of the subnets) with the same fwmark for the appropriate VLAN returning packets are ''unNAT''ed'' and the...
2006 May 05
3
iptables CLASSIFY vs fwmark?
Could someone comment on the benefits of using CLASSIFY vs fwmark (or vice versa) in iptables? I''m getting ready to implement some basic tc for VoIP and most of the examples seem to use the (older?) fwmark syntax. Should I convert these to CLASSIFY? Can the two syntaxes be mixed? Also with U32? TIA, Edwin -- <=+=+=+==+=+=+==+=+=+=+=+=+=+=+=...
2004 May 21
2
fwmark / MARK / --set-mark syntax never run on my system! Search step by step help.
Hello! This arguments never run on my system, but I need this: #!/bin/bash -x echo "1" iptables -t mangle -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2 echo "2" echo "201 T1" >> /etc/iproute2/rt_tables echo "3" ip rule add fwmark 2 table T1 echo "4" ip route add default via 192.168.21.2 dev eth1 table T1 echo "5" ip route flush cache Errors: debian:~# sh portroute 1 iptables v1.2.6a: no command specified Try `iptables -h'' or ''iptables --help'' for more information. 2 3 RTNE...
2006 Jul 29
1
FWMark routing trouble
Hi everybody, I''m trying to set up routing for 2 links to the internet on a box which produces traffic itself (e.g. DNS) and will route all our local traffic. AS one route is quick and expensive and the other one slow and cheap, I want to be able to route packets for some high-level protocols to the second link. If I correctly understood table 3-2 in
2005 Nov 29
0
fwmark port - dual adsl line
...t-mark 14 # Gnutella $IPTABLES -t mangle -A PREROUTING -i tun0 -p tcp -m multiport –destination-ports 6346,6347 -j MARK –-set-mark 15 $IPTABLES -t mangle -A PREROUTING -i tun0 -p udp -m multiport –destination-ports 6346,6347 -j MARK –-set-mark 15 Below is the iproute scripting: - # ip rule add fwmark 11 table p2p_01 ip rule add fwmark 12 table p2p_02 ip rule add fwmark 13 table p2p_03 ip rule add fwmark 14 table p2p_04 ip rule add fwmark 15 table p2p_05 # ip route add default via 192.168.3.1 dev eth0 table p2p_01 ip route add default via 192.168.3.1 dev eth0 table p2p_02 ip route add default v...
2003 Nov 06
0
fwmark and u32
Hello.. How can I specify a class for htb based on a fwmark and user ip ? For instance: I have some routes marked with fwmark and their are very-high speed connections... But only to some IP''s.. For the rest , I must limit the user to 64Kbits Now , how can I limit the high speed connections ? I must create a rule and take in account both fwmar...
2002 Aug 15
0
conditional routing based on tos/fwmark not working with ipsec
Hello all, I am working with kernel 2.2.20 with the necessary options configured into the kernel to support all of the wonderfully fancy routing features: - routing based on ToS - routing based on fwmark - multiple routing tables This same kernel is in use elsewhere, and is routing based on fwmark with success. This leads me to believe that my kernel is OK and that I have another problem. problem description - - - - - - - - - - I have marked packets using ipchains, created another routing...
2010 Oct 13
3
Routing local generted packets with fwmark
Hi all, I need to route local generated packages depending on which tcp or udp service I need to use. To accomplish this I have configured two routing tables: [root at lothlorien ~]# ip ru ls 0: from all lookup 255 32762: from all fwmark 0x2 lookup FirstLan 32763: from all fwmark 0x1 lookup SecondLan 32764: from 172.25.80.10 lookup SecondLan 32765: from 172.25.70.18 lookup FirstLan 32766: from all lookup main 32767: from all lookup default My routing tables: [root at lothlorien net]# ip ro show table FirstLan 172.25.70.16/28...
2002 Oct 29
1
the routing cache and route selection; is this correct?
...tanding of the use of the routing cache during route selection and the route selection process? Starting point: packet enters the routing stage. - Attempt a lookup in the routing cache according to the following: + destination address + source address + type of service (tos) + fwmark (fwmark) + interface on which packet was received (iif) - If a routing cache entry exists, we''re done: the route has been selected. - If there is no routing cache entry, we continue with route selection by consulting the RPDB and routing tables. 1 start traversing t...
2004 Aug 12
2
Hashing table based on FWMARK
...iptables, matching packets based on IP address and marking them with an ID. Multiple IP addresses can be marked with the same ID. We then filter based on the ID. We have close to 2000 filters now and I''m looking into hashing tables. Is there any way to create a hashing filter based on the fwmark? Paul C. Diem PCDiem@FoxValley.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2005 Oct 30
0
FWMARK ROUTING OVER MULTIPLE ROUTERS/LANS
I would like to route ssh in my network via DSL2 and all other trafic via DSL1. So far I menaged to do it for LAN2 but there are still WLAN1,LAN3 and LAN1 to go. On all routers I added table "pilicka" with rule for fwmark and I fwmarked ssh. # ip rule show 0: from all lookup local 32765: from all fwmark 0x3 lookup pilicka 32766: from all lookup main 32767: from all lookup default # iptables -L -t mangle Chain PREROUTING (policy ACCEPT) target prot opt source destination MARK tcp --...
2004 Jan 07
0
Match packet mark with --set-mark to ip rule fwmark
Hi, Here I am trying something simple. My objective is to make ip rule fwmark command work :) Network Diagram: --- 192.168.250.197 (eth0) Linux Box (eth1) 192.168.8.88 -------------192.168.8.122 (eth0) Windows XP Client Configuration done on Linux Box:- (1) [root@g webauth]# iptables -t mangle -A PREROUTING -j MARK --set-mark 5 [root@g webauth]# iptables -t mangle -L Chai...
2006 Mar 31
0
rule fwmark desn''t work for local packets (output chain)
...cy ACCEPT 71 packets, 24227 bytes) pkts bytes target prot opt in out source destination 35 2940 MARK all -- * * 0.0.0.0/0 217.17.45.128/27 MARK set 0x32 lucy ~ # ip rule 0: from all lookup local 10: from all lookup main 34: from all fwmark 50 lookup zew 50: from 80.48.56.70 lookup zew 60: from 192.168.200.10 lookup wew 100: from all lookup brama 32766: from all lookup main 32767: from all lookup default it should working fine but it''s not with this sets of rouls all is ok. lucy ~ # ip rule 0: from all lo...
2003 Mar 15
0
[Bug 63] New: fwmark loopback routing issue
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=63 Summary: fwmark loopback routing issue Product: netfilter/iptables Version: linux-2.4.x Platform: i386 OS/Version: RedHat Linux Status: NEW Severity: normal Priority: P2 Component: ip_tables (kernel) AssignedTo: laforge@netfil...
2006 Feb 06
0
ip rule, fwmark, mangle and src IP
...(adsl1: table adsl1 w/ default 0.254) FW \ 192.168.1.1 -> (gw2) 192.168.1.254 (adsl2: table adsl2 w/ default 1.254) suppose 10.0.0.254 is the default gateway for table ''main''. iptables -t mangle -A OUTPUT -d $TEST -p icmp -j MARK --set-mark $MARK ip rule add fwmark $MARK table adsl2 Now a ping to $TEST would result in icmp packets sent to gw2 *but* with src 10.0.0.254 even thought i used ''src 192.168.1.1'' when setting the route on gw2 . Is it possible that the kernel routine thath attaches the IP to the packet comes before the ''ip...
2010 Apr 27
0
Transparent proxy with LVS
...TING -p tcp --dport $WEB --dst ! $VIP -j MARK --set-mark 2 #Routing table creation if [ $(grep -sq 'www\.out' /etc/iproute2/rt_tables) ]; then echo "Table exists" else echo "202 www.out" >> /etc/iproute2/rt_tables fi #Clean tables and rules ip rule del prio 100 fwmark 2 table www.out ip route flush table www.out #Routing of marked packets ip rule add prio 100 fwmark 2 table www.out ip route add table www.out to local 0/0 dev lo ip route flush cache #ipvsadm rules ipvsadm -A --fwmark-service 2 ipvsadm -a --fwmark-service 2 --real-server $SRV01 --gatewaying ipvs...