Re: Transparent proxy using IPFW

2009-12-08 Thread kalpin
Hello,

> 2009/11/30 
>
>> 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
>> port
>> 2. All client which connected through this port, then remote server
>> which
>> landed to the end can see the client's IP.
>>
>> example:
>>
>> Client IP: 202.15.15.16
>> FreeBSD IP: 202.16.17.18 listen on port 555
>> Remote Server IP: 202.89.89.90
>>
>> Client IP connect to 202.16.17.18 on port 555, and then FreeBSD forward
>> it
>> to 202.89.89.90 with same port or different port. Server with IP
>> 202.89.89.90 can see Client's IP 202.15.15.16.
>>
>> I am using FreeBSD 7.2-stable.
>>
>> Thank you
>>
>> Kalpin Erlangga Silaen
>>
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "
>> freebsd-questions-unsubscr...@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
>
> eg
>
> some_service stream  tcp nowait  root
> /usr/local/bin/nc  nc -n -w 3  hostC port_on_hostc
> ___

I tried install rinetd, but it looks the IP come from the server not
client's ip. Also, I tried portfwd and portfwd need transparent proxy in
kernel. How do I enable this?

Need your advice.

Regards,

Kalpin Erlangga Silaen

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Transparent proxy using IPFW

2009-11-30 Thread krad
2009/11/30 

> 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
> port
> 2. All client which connected through this port, then remote server which
> landed to the end can see the client's IP.
>
> example:
>
> Client IP: 202.15.15.16
> FreeBSD IP: 202.16.17.18 listen on port 555
> Remote Server IP: 202.89.89.90
>
> Client IP connect to 202.16.17.18 on port 555, and then FreeBSD forward it
> to 202.89.89.90 with same port or different port. Server with IP
> 202.89.89.90 can see Client's IP 202.15.15.16.
>
> I am using FreeBSD 7.2-stable.
>
> Thank you
>
> Kalpin Erlangga Silaen
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@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

eg

some_service stream  tcp nowait  root
/usr/local/bin/nc  nc -n -w 3  hostC port_on_hostc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Transparent proxy using IPFW

2009-11-30 Thread kalpin
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
port
2. All client which connected through this port, then remote server which
landed to the end can see the client's IP.

example:

Client IP: 202.15.15.16
FreeBSD IP: 202.16.17.18 listen on port 555
Remote Server IP: 202.89.89.90

Client IP connect to 202.16.17.18 on port 555, and then FreeBSD forward it
to 202.89.89.90 with same port or different port. Server with IP
202.89.89.90 can see Client's IP 202.15.15.16.

I am using FreeBSD 7.2-stable.

Thank you

Kalpin Erlangga Silaen

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"