FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 12-13-2007, 01:18 PM
Balaji
 
Default Regd: iptables port forward and response from the forwarding port

Dear All,

I am still new to iptables and need some clarification and My Current Setup is CentOS 4.4

I need to implement some sort of transparent proxy server for the rsync protocol.
(In case you don't know: rsync uses tcp and the standard port 873).


I want to port forward the rsync client request to server2 from server1 and Details are given below

1. I am Execute the rsync command from client to server1 (192.168.13.165:8888 i.e with dummy port number )
2. In Server1 192.168.13.165 will redirect the rsync request from client to sever2 (192.168.13.205 with default port number)
3. Transfer the data from server2 to rsync client

The following requirement is possible by using iptables




Thanks for reading / answering!

Any help appreciated...

Regards
-S.Balaji

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 12-13-2007, 09:21 PM
Fajar Priyanto
 
Default Regd: iptables port forward and response from the forwarding port

On Thursday 13 December 2007 21:18:14 Balaji wrote:
> I need to implement some sort of transparent proxy server for the rsync
> protocol. (In case you don't know: rsync uses tcp and the standard port
> 873).
>
> I want to port forward the rsync client request to server2 from server1 and
> Details are given below
>
> 1. I am Execute the rsync command from client to server1
> (192.168.13.165:8888 i.e with dummy port number ) 2. In Server1
> 192.168.13.165 will redirect the rsync request from client to sever2
> (192.168.13.205 with default port number) 3. Transfer the data from server2
> to rsync client

Hi Balaji,
In server1:
- activate ip_forwarding in sysctl.conf, then:
iptables -t nat -A PREROUTING -p tcp -d ipofserver1 --dport 8888 -j
DNAT --to-destination ipofserver2:873

--
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
http://linux2.arinet.org
05:21:38 up 10:25, 2.6.22-14-generic GNU/Linux
Let's use OpenOffice. http://www.openoffice.org
The real challenge of teaching is getting your students motivated to learn.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 03:21 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org