Hi,
I am trying to set up a redirect (on a local lan) using relayd (using
external websites for now as a test):
The relay is on a soekris running 4.4-release. Only one interface is
up on the soekris (sis0).
Relayd.conf:
---8<---
table <sites> {bmth.ac.uk, xe.com}
#relay fun-sites {
# listen on 192.168.99.11 port 7777
# forward to <sites> port http check tcp mode roundrobin
#}
redirect s1 {
sticky-address
listen on 192.168.99.11 port 8888
forward to <sites> port http check tcp mode roundrobin
}
---8<---
pf.conf:
---8<---
rdr-anchor "relayd/*"
anchor "relayd/*"
pass in
pass out
---8<---
The (now commented) relay works, but is unpredictable due to the need
for sticky-address, which is why i switched to layer 3, but alas the
redirect does not succeed.
---8<---
Failed to Connect
Firefox can't establish a connection to the server at 192.168.99.11:8888.
Though the site seems valid, the browser was unable to establish a connection.
---8<---
PF is ofcourse enabled and rules are loaded.
Using tcpdump i see the client http request go in sis0 but never
anywhere from there.
I'm assuming you don't *need* to have 2 interfaces on a nat to use a
redirect in this way?
Thanks for reading.
--
Best Regards
Edd
http://students.dec.bournemouth.ac.uk/ebarrett