Transparent proxy using IPFW
kraduk at googlemail.com
Mon Nov 30 15:46:01 UTC 2009
2009/11/30 <kalpin at muliahost.com>
> Dear All,
> Is it possible to do like my requirement below?
> 1. Setup portfwd in my server listen on port 555 and forward all
> connection through this port to another server with same port or different
> 2. All client which connected through this port, then remote server which
> landed to the end can see the client's IP.
> Client IP: 184.108.40.206
> FreeBSD IP: 220.127.116.11 listen on port 555
> Remote Server IP: 18.104.22.168
> Client IP connect to 22.214.171.124 on port 555, and then FreeBSD forward it
> to 126.96.36.199 with same port or different port. Server with IP
> 188.8.131.52 can see Client's IP 184.108.40.206.
> I am using FreeBSD 7.2-stable.
> Thank you
> Kalpin Erlangga Silaen
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
you can but you will need to do some natting otherwise the return traffic
will go direct to host a from c and not via your box host b
or you could use nc via inetd
some_service stream tcp nowait root
/usr/local/bin/nc nc -n -w 3 hostC port_on_hostc
More information about the freebsd-questions