Your apache server must be listening on 2 IP addresses.
1 could be a private IP address, request from commercial Internet get
destination NATted to that private IP, the other could be a 44net IP
address.
The good thing about most networks daemons (like apache) is that they
will respond from the IP address that has received the request, so you
can use source based routing to distinguish between commercial Internet
and 44net/AMPR outbound traffic.
Packets sourced from your private IP address are replies to requests
from the commercial Internet and your can have them routed normally.
Packets sourced from your 44net/AMPR address are replies to requests
from 44net/AMPR.
From here you can use
http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.simple.html to set it
all up.
In case you are using 1 single IP address on apache, there is no way to
accomplish what you want to do, you can only do destination based
routing in that case.
73 de Marc
On 2014-12-26 17:58, Arno Verhoeven wrote:
(Please trim inclusions from previous messages)
_______________________________________________
Hi,
I am looking for help setting up a conditional routing table.
I have my tunnel up and running. I can reach other 44-net host.
amrp-ripd is used to fill the routing table.
So far so good, but I would like one of the web-sites (apache httpd
vhost) to be reachable from both 44-net and non-44-net.
If i check with tcpdump I see traffic coming in when I try to access
the web-site (
pi8zaa.ampr.org) via the Internet (I used my phone
connected to t-mobile network).
But it doesn't work because my server routes the replies to my ISP's
Gw where they get source filtered.
Basically I want/need traffic that comes in via the tunnel to get
answered from the tunnel interface.
I Googled for a solution. Found lots of variant of this
http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.multiple-links.html
but if I understand what is described there correctly, then that is
not exactly what I need.
Maybe I don't understand iproute2 and its routing table concept
correctly. They way I understand it, those examples assume destination
routing based on provider subnet, while in my case the destination is
on the Internet, and in normal cases should be routed via my ISP
except if it came in via the tunnel.
Thanks for any help you can offer.
73 PE1ICQ // Arno
_________________________________________
44Net mailing list
44Net(a)hamradio.ucsd.edu
http://hamradio.ucsd.edu/mailman/listinfo/44net
--
Marc, LX1DUC
--
www.laru.lu - Luxembourg Amateur Radio Union
www.emcomm.services - Emergency Communication
www.ham-dmr.lu - DMR Infos for HAMs