LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2007, 08:55 AM   #1
bijukn
LQ Newbie
 
Registered: Mar 2007
Location: india, kerala, trivandrum
Distribution: redhat, clarkconnect, ubuntu
Posts: 4

Rep: Reputation: 3
Redhat ES4 multi-wan, multiple internet to vsftpd


Hi,

I'm using RedhatES4.
I'm having 3 internet routers with LAN IPs 192.168.5.254, 192.168.6.254 and 182.168.7.254.
all the routers port 21 is forwarded to corresponding LAN addresses 192.168.5.100, 192.168.6.100 and 192.168.7.100.

and my redhat machine having four LAN cards
eth0 - 192.168.0.10 for local LAN traffic/samba

eth1 - 192.168.5.100
eth2 - 192.168.6.100
eth3 - 192.168.7.100
default gateway 192.168.5.254
vsftpd runs as multiple demon to the above listen address.

i could only login to the ftp server through the default gateway.
please anybody help me to resolve the problem how to route the other two internet connections to the ftp server. i'm ready to change even the ip scheme of the routers and LANs.
 
Old 03-04-2007, 09:28 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Post the current contents of /etc/sysconfig/networking-scripts/ifcfg-eth0, ifcfg-eth1, ifcfg-eth2, and ifcfg-eth3.
Post output of ' route -n '

Now with current setup on the eth2 and eth3 does it goto the port 21 assigned on eth1?

Can traffic setup to go ut any of the eth1-3 nics?

I assume you are using iptables. Post your iptables script and output of ' /sbin/iptables -L '.

Brian
 
Old 03-05-2007, 12:06 AM   #3
bijukn
LQ Newbie
 
Registered: Mar 2007
Location: india, kerala, trivandrum
Distribution: redhat, clarkconnect, ubuntu
Posts: 4

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Brian1
Post the current contents of /etc/sysconfig/networking-scripts/ifcfg-eth0, ifcfg-eth1, ifcfg-eth2, and ifcfg-eth3.
Post output of ' route -n '

Now with current setup on the eth2 and eth3 does it goto the port 21 assigned on eth1?

Can traffic setup to go ut any of the eth1-3 nics?

I assume you are using iptables. Post your iptables script and output of ' /sbin/iptables -L '.

Brian
===========================================
Hi, this is all I know

[root@ftpserver ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.100 192.168.7.254 255.255.255.255 UGH 0 0 0 eth3
192.168.5.100 192.168.5.254 255.255.255.255 UGH 0 0 0 eth1
192.168.6.100 192.168.6.254 255.255.255.255 UGH 0 0 0 eth2
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
192.168.6.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth3
0.0.0.0 192.168.5.254 0.0.0.0 UG 0 0 0 eth1
[root@ftpserver ~]#

===================================================================================
[root@ftpserver ~]# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@ftpserver ~]#
===================================================================================

login as: root
root@192.168.0.10's password:
Last login: Mon Mar 5 10:57:00 2007 from 192.168.0.224
[root@ftpserver ~]# cd /etc/sysconfig/network-scripts/
[root@ftpserver network-scripts]#
[root@ftpserver network-scripts]# ls
ifcfg-eth0 ifdown-ipv6 ifup-ipsec ifup-sit
ifcfg-eth1 ifdown-isdn ifup-ipv6 ifup-sl
ifcfg-eth2 ifdown-post ifup-ipx ifup-wireless
ifcfg-eth3 ifdown-ppp ifup-isdn init.ipv6-global
ifcfg-lo ifdown-sit ifup-plip network-functions
ifdown ifdown-sl ifup-plusb network-functions-ipv6
ifdown-aliases ifup ifup-post route-eth1
ifdown-ippp ifup-aliases ifup-ppp route-eth2
ifdown-ipsec ifup-ippp ifup-routes route-eth3
[root@ftpserver network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:11:11:19:A6:2A
IPADDR=192.168.0.10
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet
[root@ftpserver network-scripts]# cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.5.100
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet

[root@ftpserver network-scripts]# cat ifcfg-eth2
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.6.100
NETMASK=255.255.255.0

[root@ftpserver network-scripts]# cat ifcfg-eth3
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth3
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.7.100
NETMASK=255.255.255.0

[root@ftpserver network-scripts]# cat route-eth1
to 192.168.5.100 via 192.168.5.254
[root@ftpserver network-scripts]# cat route-eth2
to 192.168.6.100 via 192.168.6.254
[root@ftpserver network-scripts]# cat route-eth3
to 192.168.7.100 via 192.168.7.254
[root@ftpserver network-scripts]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=ftpserver.kaumudi.lan
GATEWAY=192.168.5.254
GATEWAYDEV=eth1
[root@ftpserver network-scripts]#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux multi wan (separate inbound and outbound) wartelz Linux - Networking 1 01-11-2007 12:40 AM
Local Repository RedHat ES4 dade_85 Linux - Server 1 11-24-2006 10:54 AM
root issues on multi lan/wan set up rblampain Linux - Security 2 05-26-2006 04:21 AM
open source multi-WAN router lothario Linux - Networking 3 11-24-2005 05:31 AM
vsftpd over WAN m2azer Linux - Networking 2 11-01-2005 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration