Data Transfer Problem

  • A.Kannan
  • Graduate
  • Graduate
  • User avatar
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India

Post 3+ Months Ago

Image


Hello Friends

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

Whether any body to know please explain

Thank You
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

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.
  • A.Kannan
  • Graduate
  • Graduate
  • User avatar
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India

Post 3+ Months Ago

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
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Why just use routing functions in linux and set up a NAT? (Network Address Translation)
  • A.Kannan
  • Graduate
  • Graduate
  • User avatar
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India

Post 3+ Months Ago

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
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

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
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India

Post 3+ Months Ago

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
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

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
  • Posts: 216
  • Loc: Sivakasi, TamilNadu, India

Post 3+ Months Ago

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
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

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 24 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
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.