![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|
|||
![]()
I know this is supposed to be simple, but I can't seem to make it work.
I have a local webserver running at port 8080. It is not httpd. I have certs for my website (lets say badda.bing.org) all set up. How to use relayd to send all browser requests from https://badda.bing.org to my local webserver running at port 8080? Code:
http protocol "https-secure-headers" { match header set "X-Forwarded-For" value "$REMOTE_ADDR" match header set "X-Forwarded-By" value "$SERVER_ADDR:$SERVER_PORT" pass tls keypair badda.bing.org } relay "tls-to-http" { listen on $ipv4 port 443 tls protocol "https-secure-headers" forward to $LOCALHOST port 80 } Thanks. |
|
|||
![]() Code:
ip4="xxx.xxx.xxx.xxx" table <service1> { 127.0.0.1 } log connection http protocol https { match request header append "X-Forwarded-For" value "$REMOTE_ADDR" match request header append "X-Forwarded-By" value "$SERVER_ADDR:$SERVER_PORT" match request header set "Connection" value "close" tcp { sack, backlog 128 } tls { keypair badda.bing.org } match request header "Host" value "badda.bing.org" forward to <service1> } relay wwwtls { listen on $ip4 port 443 tls protocol https forward to <service1> port 8080 check icmp } https request get me my website, yes it is working. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Relayd as a HTTPS client | e1-531g | OpenBSD Security | 4 | 11th January 2016 07:11 PM |
Best way to do webserver permissions for multiuser? | KintaroBC | OpenBSD General | 5 | 10th July 2013 07:24 AM |
Local BOX Port Foward Problem | paul-lkw | FreeBSD Security | 6 | 7th February 2009 06:47 PM |
Maintenance free webserver | Yuka | FreeBSD General | 1 | 29th November 2008 10:36 PM |
Webserver email queue | Yuka | FreeBSD General | 5 | 12th November 2008 12:52 AM |