Data Transfer Problem

  • A.Kannan
  • Graduate
  • Graduate
  • User avatar
  • Joined: Oct 22, 2005
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India
  • Status: Offline

Post February 5th, 2006, 11:45 pm

Image


Hello Friends

How to get data in Machine1 to Machine3. (Without join two switch)

Whether any body to know please explain

Thank You
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 5th, 2006, 11:45 pm

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post February 6th, 2006, 10:10 am

put it on machine 2. lol


a.k.a. go to machine 2 (or from machine 1, if a folder on machine 2 has write privileges for machine 1 to access), grab the file from machine 1 and put it on 2. once it's here, go to machine 3 (or from machine 2, if it has write access to a folder on machine 3) and transfer the file to machine 3.


btw, you'll need samba installed on your redhat machine in order for it to be able to communicate with your windows boxes.
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • A.Kannan
  • Graduate
  • Graduate
  • User avatar
  • Joined: Oct 22, 2005
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India
  • Status: Offline

Post February 6th, 2006, 9:47 pm

Hello Sir

Machine 1 and Machine 2 (NIC 1) is connected in Switch 1. Machine 2 (NIC2) and Machine 3 is connected to Switch 2.

Any Routing Concepts to get the data in Machine 1 to Machine 3.

I want Linux Server act as a Router. Whether If it is possible or not?

If it is possible How and explain ? or not Any idea to get the data in Machine 1 to Machine 3

Thank You
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post February 7th, 2006, 6:56 am

Why just use routing functions in linux and set up a NAT? (Network Address Translation)
"It's always a long day, 86,400 won't fit into a short."
  • A.Kannan
  • Graduate
  • Graduate
  • User avatar
  • Joined: Oct 22, 2005
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India
  • Status: Offline

Post February 7th, 2006, 11:02 pm

Hello Sir,

How to configure and use routing functions in linux and set up a NAT?

Please explain Sir

Thank You

A.Kannan
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post February 8th, 2006, 11:01 am

Google should be your homepage - this is Networking 101 material.

The short answer is:
Code: [ Select ]
# figure eth1 is your 192.168.0.xxx side

iptables --flush

iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F

modprobe ip_nat_ftp

echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr

iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 10.0.0.3
  1. # figure eth1 is your 192.168.0.xxx side
  2. iptables --flush
  3. iptables -P FORWARD DROP
  4. iptables -F FORWARD
  5. iptables -t nat -F
  6. modprobe ip_nat_ftp
  7. echo "1" > /proc/sys/net/ipv4/ip_forward
  8. echo "1" > /proc/sys/net/ipv4/ip_dynaddr
  9. iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
  10. iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
  11. iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 10.0.0.3

The better answer is to get to know The Linux Documentation Project web site ( http://www.tldp.org ), in particular:
http://tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html
  • A.Kannan
  • Graduate
  • Graduate
  • User avatar
  • Joined: Oct 22, 2005
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India
  • Status: Offline

Post February 9th, 2006, 4:26 am

Hello Sir,

All Configurations are changed correctly.

But

In Machine 1 Ping 192.168.0.3

Machine 1 Gateway : 10.0.0.3

Reply from 10.0.0.3: Destination net unreachable.
Reply from 10.0.0.3: Destination net unreachable.
Reply from 10.0.0.3: Destination net unreachable.


How to rectify Please explain

Thank You
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post February 9th, 2006, 7:56 am

I hate to sound rude, but you need to actually read and understand the HOWTO I posted - or at least follow it through.

From this side, it looks as though you're not even trying - like you're just looking for someone to hand the answers to you. If this is your aim, maybe you should try a support forum for your distribution. I can guarantee you that if you had followed the HOWTO I posted to the letter and just treated either side as external and the other as internal, you would already have this working by now.

Otherwise, how about listing some rudimentary data like iptables -L, lsmod | grep ip, tell us what you've done so far, what sort of domain these machines are in and what sort of firewalls sit between those machines and the RHL machine.
  • A.Kannan
  • Graduate
  • Graduate
  • User avatar
  • Joined: Oct 22, 2005
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India
  • Status: Offline

Post February 9th, 2006, 11:14 pm

Hello Sir,

Linux System displays

[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

[root@localhost root]# lsmod | grep ip
iptable_filter 2412 1 (autoclean)
ip_tables 15776 1 [iptable_filter]
[root@localhost root]#
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post February 10th, 2006, 7:28 am

http://tldp.org/HOWTO/IP-Masquerade-HOW ... S-STRONGER

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 41 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.