Re: Rsync PortRedirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 3 Jul 2006, Bruno Nunes wrote:

Hi,
 How can i use rsync beetwen 2 computers in diferents networks? I
put an addicional ip address in the router to host this forward that i
will call _ip2

Computer A = 139.82.xxx.xx1
Computer B = 192.168.1.4
router_ip2 = 139.82.xxx.xx2

router_ip2 and computer A are onde the same network
router is on both networks, of course

rsync uses port 873 i guess

this is what i want to run:
rsync -razvp localhost:/home/ 139.82.xxx.xx2::backup/daily

139.82.xxx.xxx -> router -> 192.168.1.4 : 873

i tried:
iptables -t nat -A PREROUTING -d 139.82.xxx.xx2 -i eth0 -p tcp --dport
873 -j DNAT --to 192.168.1.4
...but didnt work

thanks


If ssh works in your networking rules, rsync can run on the ssh port, I think, if I recall from research a few years back it;s the -e switch to rsync.

yep;

    -e, --rsh=COMMAND           specify the remote shell


Thanks,


Ron DuFresne
- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        admin & senior security consultant:  sysinfo.com
                        http://sysinfo.com
Key fingerprint = 9401 4B13 B918 164C 647A  E838 B2DF AFCC 94B0 6629

...We waste time looking for the perfect lover
instead of creating the perfect love.

                -Tom Robbins <Still Life With Woodpecker>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFErsJGst+vzJSwZikRAqd7AJ96NwQttDCZLK9sskMfvUkM8yx07wCgiwNn
rihnV59OyZty+Gqj3Do9+xE=
=rJtY
-----END PGP SIGNATURE-----


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux