<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2876" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>/sbin/ifconfig -a </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>Samba:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>1. check the logs in /var/log for helpfull
data.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>2. iptables may be your culprit. by default it will
block incoming smb connections from your windows systems to that linux system.
So you will need to modify /etc/sysconfig/iptables to allow the ports and
protocols into your linux server otherwise they will just get dropped. You can
probably browse from the linux box to a windows network (as iptables allows
outbound connections from the system by default) but not
vice-a-versa.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>Your next question may be how to modify IP tables to allow
in smb connections.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>man iptables</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>cp /etc/sysconfig/iptables
/etc/sysconfig/iptables.orig</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>vi /etc/sysconfig/iptables</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>add some entries like this (i am unsure of the smb ranges
needed so I am using 135 as an example although I think the range is 135-139 and
445)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>where x.x.x.x is the workstation you want to trust the
connection from. Depending on what smb needs you may need udp and/or tcp entries
in iptables to allow in the traffic.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=210432313-27042006><FONT face=Arial
color=#0000ff size=2>-A RH-Firewall-1-INPUT -s x.x.x.x -m state --state NEW
-m tcp -p tcp --dport 135 -j ACCEPT</FONT></SPAN></DIV>
<DIV><SPAN class=210432313-27042006><FONT face=Arial color=#0000ff size=2>-A
RH-Firewall-1-INPUT -s x.x.x.x -p udp -m udp --dport 135 -j
ACCEPT</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=210432313-27042006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=210432313-27042006>Issue
/etc/init.d/iptables restart to make the changes active.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=210432313-27042006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=210432313-27042006>-greg</SPAN></FONT></DIV>
<DIV><BR></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> centos-bounces@centos.org
[mailto:centos-bounces@centos.org] <B>On Behalf Of </B>Chris
Peikert<BR><B>Sent:</B> Thursday, April 27, 2006 8:17 AM<BR><B>To:</B> 'CentOS
mailing list'<BR><B>Subject:</B> [CentOS] How to find your IP
Address<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Ok guys a quick newb question. I
have been reading up on the Red Hat Enterprise 4 for dummies book along with
installing and playing with the configurations of Cent OS 4. I have yet been
able to find any information on how to find out what your IP address is. I
have it set to use DHCP from our Windows server and I looked under the network
card configuration settings but can not find any command or GUI place that
will show your IP Address. When I go to a windows machine and try to ping the
Cent box by its name it cant find the host. Now I know I can go into the DHCP
server but I need to learn how to find it on the Linux box.
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Another question has to deal with
Samba. I set up samba using the GUI interface then ran <B><SPAN
style="FONT-WEIGHT: bold">service smb start</SPAN></B> command to start up
samba. The book says I should be able to browse the network with a windows
machine now and find the linux box but I am unable to. Any clues why its not
showing up on the
network?<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>