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 12-29-2006, 10:26 PM   #1
tcrabtree21
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
Problem getting internal NIC to respond


Here is the scenario: I'm running Slackware 10.2 on a Dell Poweredge 2850. It has two network cards, and I have the first (eth0) configured as my external for a web server. The other NIC (eth1), I need to configured to accept MySQL traffic (port 3306) from our internal network (172.16.x.x). In fact, only one specific IP address on the internal network needs access to eth1.
I am not sure how to set this up. This is not a router or bridge situation, since no traffic should pass from the external to the internal network, nor should internal traffic be allowed out.
I've tried a couple of iptables rules, but none work for me. An example is:
Code:
iptables -A INPUT -i eth1 -s 172.16.0.1 --dport 3306 -j ACCEPT
But it does not work. How can set up this kind of scenario?
 
Old 12-29-2006, 11:07 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
By doesn't work, do you mean that

1. other computers on the 172.16 subnet can access port 3306
2. 172.16.0.1 is unable to connect to the server

Hope MySQL is listening on port 3306 (netstat -nl)
 
Old 12-30-2006, 04:21 PM   #3
tcrabtree21
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I should have given more details: by doesn't work, I mean that no computer on the 172.16 subnet can access the server. However, the server can ping itself, using the static IP addressed assigned to it on the 172.16 subnet. There doesn't seem to be any trouble with eth0, which has a "real" IP address. The web server is up and working, and I can SSH to it.
Netstat does show that port 3306 is listening, and I can connect to port 3306 using the "real" IP address on eth0. We had planned to keep all of the MySQL traffic on the internal network, thus the reason we are trying to get eth1 up and running.
 
Old 12-31-2006, 11:59 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
You must have

1. ruled out hardware problems (patch cord/port on switch/hub)
2. checked subnet mask matches the network
 
  


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
SSH problem - ssh-add not respond FerkoPica Linux - Security 6 05-07-2006 03:47 PM
Installation of internal HP DAT 40i DDS internal tape drive netkepala Linux - Hardware 3 11-08-2004 12:22 PM
2 External Nic, 1 Internal Nic Router Problem trevanda Linux - Networking 0 10-13-2004 01:20 AM
3 nic problem, 1 nic don't work ldp Linux - Networking 3 07-20-2004 12:24 PM
2 NIC problem, no internal ping, only external browny_amiga Linux - Networking 3 12-02-2002 01:21 AM

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

All times are GMT -5. The time now is 12:54 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