Click to See Complete Forum and Search --> : Gateway problem?


incoma
02-01-2001, 06:15 AM
Hi there...

I have an Linux box (RedHat 6.0) configured as Mail server, Web Server and Gateway.

My users (with Windows) access to the Internet using this as gateway, no problem!

My problem is when i want to use FTP client in windows my Gateway doesnīt resolve the Names.

Any help would be greatful.

The_Stack
02-01-2001, 11:44 AM
Most likely your resolver is not configured correctly, for more information:

man resolver

then add the IP address of your DNS servers to /etc/resolv.conf

Good Luck!

mindwarp
02-01-2001, 04:26 PM
Click the NHF button and do a bit of reading..
http://www.linuxnewbie.org/nhf/intel/network/ipchains2.html

Make sure you have ip_masq_ftp loaded.. if not read that above link.

Mindwarp

------------------
"I'm born. I'm alive. I breathe. In a moment or two I realize, that the sphere, upon which I reside, is asleep on its feet. should I go back to sleep? We orbit the sun. I grow up. my open eyes see...A zombified, somnambulist society. Leaving us as vitamins for the hibernating human animal. Do you see what I mean?"

incoma
02-02-2001, 07:38 AM
I think the resolv.conf itīs ok....

search myDomain.com
nameserver 127.0.0.1
nameserver IP of dns.myISP.com
nameserver IP of dns.myISP.com

i tried to make nslookup and make some queries and seems ok too....

$>nslookup

Default Server: localhost
Address: 127.0.0.1

> www.linuxnewbies.org (http://www.linuxnewbies.org)
Server: localhost
Address: 127.0.0.1

Name: www.linuxnewbie.org (http://www.linuxnewbie.org)
Address: 63.236.73.208

Maybe ip_masq_ftp modules not loaded..
Will try! thanks

incoma
02-02-2001, 01:35 PM
Ok my windows users can now use FTP clients!!

There has 2 problems...

1st
I have to put this lines into the rc.local
# 1) Flush the rule tables.
/sbin/ipchains -F input
/sbin/ipchains -F forward
/sbin/ipchains -F output
# 2) Deny all forwarding packets except those from local network.
# Masquerage those.
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.0.0/24 -j MASQ
# 3) Load forwarding modules for special services.
/sbin/modprobe ip_masq_ftp


2nd
My windows box have Gateway ip ok but i have to put also the ip of the DNS (that was missing) my Linux box!

But anyway THANKīs very very very much!

Cheers!