Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 May 2018 18:08:08 -0400
From:      Reshad Patuck <reshadpatuck1@gmail.com>
To:        freebsd-net@freebsd.org,Andrea Venturoli <ml@netfence.it>
Subject:   Re: Proxy a TCP connection
Message-ID:  <0A8A304F-0772-4F1D-8906-B1AB9B7E2F36@gmail.com>
In-Reply-To: <2346bc5f-1ca3-3b6a-ac1a-c496e94eb969@netfence.it>
References:  <2346bc5f-1ca3-3b6a-ac1a-c496e94eb969@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

If you are running pf or ipfw on your router you could use a forward rule =
to forward connections that come in on a certain internet IP and port to a =
select internal IP or port=2E

If you don't have a firewall running and can install ports on your router =
have a look at relayd, it should do what you want=2E

Best,

Reshad

On 18 May 2018 5:29:33 PM GMT-04:00, Andrea Venturoli <ml@netfence=2Eit> w=
rote:
>Hello=2E
>
>Let's say I have a router connected to the Internet on one side and to
>a=20
>LAN with private IPs on the other=2E
>I want some clients from outside to be able to connect to a TCP service
>
>on a machine on the LAN: they should connect to port X on the
>firewall's=20
>public IP and reach port Y on the internal box=2E
>
>I've used net/socket in the past, but stopped when, in some corner
>case,=20
>it would "ruin" the data; besides it has been removed from the port
>tree=2E
>
>I happily switched to net/tcpproxy, but lately it's dying every few
>days=20
>and must be restarted; I could drop its rc=2Ed script and use=20
>sysutils/daemontools' svscan instead, but if there's a simpler
>solution=2E=2E=2E
>
>Does anyone have a good suggestion for a program similar to the above
>ones?
>I require nothing fancy, I just want it to be reliable=2E
>
>  bye & Thanks
>	av=2E
>_______________________________________________
>freebsd-net@freebsd=2Eorg mailing list
>https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-net
>To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd=2Eorg"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0A8A304F-0772-4F1D-8906-B1AB9B7E2F36>