Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Philip Champon <pchampon@gonk.valueweb.net>
To: lartc@vger.kernel.org
Subject: [LARTC] routing oddity, help?
Date: Fri, 22 Aug 2003 14:19:12 +0000	[thread overview]
Message-ID: <marc-lartc-106156216120711@msgid-missing> (raw)

(sorry if this double posts, my from: was wrong)

Hello,

I am trying to use iptables/iproute2 to get around assigning IP addresses.
I have two machines I am trying this with, machine A is LVS running keepalived,
using firewall marks to route to virtual servers. Machine B is an stunnel
machine de-ssling port 443 requests sent to machine A.

The steps I have taken:

all options for iptables are on, LVS is patched in, advanced routing options
are on. all pertinent options for routing using fwmarks are on too.

Machine A
iptables -A PREROUTING -t mangle -j MARK -p tcp --dport 80 --set-mark 0x1
iptables -A PREROUTING -t mangle -j MARK -p tcp --dport 443 --set-mark 0x2
ip rule add prio 100 fwmark 1 table 100
ip route add local 0/0 dev lo table 100
ip rule add prio 200 fwmark 2 table 200
ip route add 0/0 via B table 200

Machine B
iptables -A PREROUTING -t mangle -j MARK -p tcp --dport 443 --set-mark 0x1
ip rule add prio 100 fwmark 1 table 100
ip route add local 0/0 dev lo table 100

Issuing these commands on machine A, packets move as I expect them to. However,
on machine B, using tcpdump I see packets come in on port 443, but I never see
machine B respond or send an ICMP error.

Can someone please tell me why this is happening? At this point, it seems like
either the keyword local is reserved for use in the local table and or
keepalived is doing some magic... ???

-- 
Philip Champon Affinity Developer
Ph - 954-334-8156
Em - pchampon@gonk.valueweb.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2003-08-22 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-22 14:19 Philip Champon [this message]
2003-08-24 23:55 ` [LARTC] routing oddity, help? Damion de Soto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-106156216120711@msgid-missing \
    --to=pchampon@gonk.valueweb.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox