Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd April 2006, 20:19
LuisC-SM LuisC-SM is offline
Member
 
Join Date: Apr 2006
Location: Webland, Mexico
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Samba setup using Ubuntu 5.10. No internet access

Hi guys, after installing samba I cannot conect to internet.
details:

Ping
Quote:
root@server1:~# ping -c4 www.google.com
PING www.l.google.com (64.233.167.147) 56(84) bytes of data.
From server1.metro.com (192.168.1.1) icmp_seq=2 Destination Host Unreachable
From server1.metro.com (192.168.1.1) icmp_seq=3 Destination Host Unreachable
From server1.metro.com (192.168.1.1) icmp_seq=4 Destination Host Unreachable

--- www.l.google.com ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
, pipe 3
root@server1:~# ping -c4 216.239.59.99
PING 216.239.59.99 (216.239.59.99) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=2 Destination Host Unreachable
From 192.168.1.1 icmp_seq=3 Destination Host Unreachable
From 192.168.1.1 icmp_seq=4 Destination Host Unreachable

--- 216.239.59.99 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2998ms
, pipe 3
My /etc/hosts file
Quote:
27.0.0.1 localhost.localdomain localhost server1
192.168.1.1 server1.metro.com server1
192.168.1.64 METRO-OLIVIA
192.168.1.65 metro-recepcion
192-168.1.66 metro-2
192.168.1.76 Toshiba

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
My /etc/network/interfaces file:
Quote:
# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
My /etc/resolv.conf file
Quote:
search gateway.2wire.net
#search server
nameserver 192.168.1.254
nameserver 200.33.146.209
nameserver 200.33.146.218
My list of open Ports from my router
Quote:
TCP 21 201.135.226.87
TCP 443 201.135.226.87
TCP 143 201.135.226.87
TCP 220 201.135.226.87
TCP 585 201.135.226.87
TCP 993 201.135.226.87
TCP 16000 201.135.226.87
TCP 16010-16030 201.135.226.87
UDP 16000 201.135.226.87
UDP 16010-16030 201.135.226.87
TCP 119 201.135.226.87
TCP 123 201.135.226.87
TCP 110 201.135.226.87
TCP 995 201.135.226.87
TCP 1723 201.135.226.87
TCP 1723 201.135.226.87
TCP 8000-8005 201.135.226.87
TCP 25 201.135.226.87
TCP 22 201.135.226.87
TCP 23 201.135.226.87
UDP 7777 201.135.226.87
TCP 80 201.135.226.87
UDP 6613 201.135.226.87
TCP 5500 201.135.226.87
TCP 5800 201.135.226.87
TCP 5900 201.135.226.87
TCP 3389 201.135.226.87
TCP 613 201.135.226.87
UDP 613 201.135.226.87
I created this port by a rule
Note. P.s suggest me which ports must not be open
My Router asigns 192.168.1.1/63 for static IPs and 192.168.1.64/251 to DHCP.
In the explorer i cannot connect to http://192.168.1.1:631/ in my Toshiba machine to add a printer (it fails) even when I have made a rule for port 631.
Thanks for the time in advance for your help.

Kind Regards

Luis C. Suarez

EDIT:

My netstat -tap:
Quote:
root@server1:/etc# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:netbios-ssn *:* LISTEN 6
tcp 0 0 *:microsoft-ds *:* LISTEN 6
tcp6 0 0 *:ssh *:* LISTEN 6
tcp6 0 0 server1.metro.com:ssh Toshiba:2862 ESTABLISHED7
root@server1:/etc#
My dig google command
Quote:
root@server1:~# dig www.google.com

; <<>> DiG 9.3.1 <<>> www.google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62604
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 604470 IN CNAME www.l.google.com.
www.l.google.com. 40 IN A 64.233.167.147
www.l.google.com. 40 IN A 64.233.167.104
www.l.google.com. 40 IN A 64.233.167.99

;; Query time: 58 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Sat Apr 22 14:34:09 2006
;; MSG SIZE rcvd: 100

root@server1:~#
ifconfig output
Quote:
root@server1:~# ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:00:E5:7F:8E
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::5054:ff:fee5:7f8e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11427 errors:0 dropped:0 overruns:0 frame:0
TX packets:3944 errors:0 dropped:0 overruns:0 carrier:0
collisions:11 txqueuelen:1000
RX bytes:945983 (923.8 KiB) TX bytes:504949 (493.1 KiB)
Interrupt:18 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:191 errors:0 dropped:0 overruns:0 frame:0
TX packets:191 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18940 (18.4 KiB) TX bytes:18940 (18.4 KiB)

root@server1:~#
__________________
Humility is not a "Status"...
It's a "Gift"!

Last edited by LuisC-SM; 22nd April 2006 at 23:19.
Reply With Quote
Sponsored Links
  #2  
Old 23rd April 2006, 19:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Is that system also the gateway (192.168.1.1)? Have you tried to restart the network?
Code:
/etc/init.d/networking restart
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 24th April 2006, 15:36
LuisC-SM LuisC-SM is offline
Member
 
Join Date: Apr 2006
Location: Webland, Mexico
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Is that system also the gateway (192.168.1.1)? Have you tried to restart the network?
Code:
/etc/init.d/networking restart
Same Gateway yes (or if you mean my routers gateway let me check and post back)
I did it about 5 times with the same results (the restart)

Kind Regards
__________________
Humility is not a "Status"...
It's a "Gift"!

Last edited by LuisC-SM; 24th April 2006 at 15:48.
Reply With Quote
  #4  
Old 24th April 2006, 16:09
LuisC-SM LuisC-SM is offline
Member
 
Join Date: Apr 2006
Location: Webland, Mexico
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My ISP's values:
Quote:
PPPoE Service:
Intervalo de dirección IP: 201.135.226.87 (this is my IP)
Máscara de subred: 255.255.255.255 (Subnet mask)
Puerta de enlace: 200.38.193.226 (this is the gateway)
DNS principal: 200.33.146.209 (Primary DNS)
DNS secundario: 200.33.146.218 (Secondary DNS)
Nombre de host: (Host name -has no value)
Nombre de dominio: (Domain name no value)
MTU: 1492
Local Network values:
Quote:
IP
Gateway: 192.168.1.254
IP Network: 192.168.1.0
Subnet Mask: 255.255.255.0
DHCP Intervals: 192.168.1.64 – 192.168.1.253
Assigned: 5
Available: 185

Public Network
Router's Address: No
Subnet Mask: No
Bridge Network
Bridge Address: No
Subnet Mask: No (Values translated From Spanish)
Kind Regards

Luis C. Suárez
__________________
Humility is not a "Status"...
It's a "Gift"!
Reply With Quote
  #5  
Old 24th April 2006, 16:59
LuisC-SM LuisC-SM is offline
Member
 
Join Date: Apr 2006
Location: Webland, Mexico
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solved.

Hey Falko.
Thanks again.
Your question was the answer... My gateway was wrong, I used the same one on your manual, so I believe that was the problem... I changed it, reboot the server and voila!!!

But I still cannot connect with 192.168.1.1:613.... Let me recheck the parameters and if all is right... I'll come back.... else.... just thanks again

Kind Regards

Luis C. Suárez
__________________
Humility is not a "Status"...
It's a "Gift"!
Reply With Quote
  #6  
Old 24th April 2006, 18:46
LuisC-SM LuisC-SM is offline
Member
 
Join Date: Apr 2006
Location: Webland, Mexico
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, I cannot connect to http://192.168.1.1:631/ it gives me a 403 Forbidden error.

I've gone through all installation and can't guess what's the problem.

Kind Regards

Luis C. Suárez
__________________
Humility is not a "Status"...
It's a "Gift"!
Reply With Quote
  #7  
Old 24th April 2006, 21:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Does the firewall allow access to port 631?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 24th April 2006, 22:54
LuisC-SM LuisC-SM is offline
Member
 
Join Date: Apr 2006
Location: Webland, Mexico
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Does the firewall allow access to port 631?
I really don't know, after 2 hours of investigating my router's console the only thing I could find is this:
Quote:
INF 2006/04/24 13:01:20 CST lmd: Added a pinhole: bb_addr=201.135.226.87, home_addr=192.168.1.1, appid=234, portid=208, proto=6, port=631
I do not know what it means but I can not access the CUPS interface anyhow.

Any ideas?

Kind Regards

Luis C. Suárez
__________________
Humility is not a "Status"...
It's a "Gift"!
Reply With Quote
  #9  
Old 25th April 2006, 00:29
LuisC-SM LuisC-SM is offline
Member
 
Join Date: Apr 2006
Location: Webland, Mexico
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Port 631 is now open and still cannot get to http://192.168.1.1:631/

I rebooted both boxes (server and workstation) this is my /etc/cups/cupsd.conf file:
Quote:
########
######## Security Options
########

#
# SystemGroup: the group name for "System" (printer administration)
# access. The default varies depending on the operating system, but
# will be "sys", "system", or "root" (checked for in that order.)
#
# Debian: The default CUPS group is "lpadmin".
#

#SystemGroup lpadmin

#
# RootCertDuration: How frequently the root certificate is regenerated.
# Defaults to 300 seconds.
#

#RootCertDuration 300

#
# Access permissions for each directory served by the scheduler.
# Locations are relative to DocumentRoot...
#
# AuthType: the authorization to use:
#
# None - Perform no authentication
# Basic - Perform authentication using the HTTP Basic method.
# Digest - Perform authentication using the HTTP Digest method.
#
# (Note: local certificate authentication can be substituted by
# the client for Basic or Digest when connecting to the
# localhost interface)
#
# AuthClass: the authorization class; currently only "Anonymous", "User",
# "System" (valid user belonging to group SystemGroup), and "Group"
# (valid user belonging to the specified group) are supported.
#
# AuthGroupName: the group name for "Group" authorization.
AuthGroupName shadow
#
# Order: the order of Allow/Deny processing.
#
# Allow: allows access from the specified hostname, domain, IP address,
# network, or interface.
#
# Deny: denies access from the specified hostname, domain, IP address,
# network, or interface.
#
# Both "Allow" and "Deny" accept the following notations for addresses:
#
# All
# None
# *.domain.com
# .domain.com
# host.domain.com
# nnn.*
# nnn.nnn.*
# nnn.nnn.nnn.*
# nnn.nnn.nnn.nnn
# nnn.nnn.nnn.nnn/mm
# nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
# @LOCAL
# @IF(name)
#
# The host and domain address require that you enable hostname lookups
# with "HostNameLookups On" above.
#
# The @LOCAL address allows or denies from all non point-to-point
# interfaces. For example, if you have a LAN and a dial-up link,
# @LOCAL could allow connections from the LAN but not from the dial-up
# link. Similarly, the @IF(name) address allows or denies from the
# named network interface, e.g. @IF(eth0) under Linux. Interfaces are
# refreshed automatically (no more than once every 60 seconds), so
# they can be used on dynamically-configured interfaces, e.g. PPP,
# 802.11, etc.
#
# Encryption: whether or not to use encryption; this depends on having
# the OpenSSL library linked into the CUPS library and scheduler.
#
# Possible values:
#
# Always - Always use encryption (SSL)
# Never - Never use encryption
# Required - Use TLS encryption upgrade
# IfRequested - Use encryption if the server requests it
#
# The default value is "IfRequested".
#

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

#<Location /classes>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

#<Location /classes/name>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

<Location /jobs>
#
# You may wish to limit access to job operations, either with Allow
# and Deny lines, or by requiring a username and password.
#
AuthType Basic
AuthClass User
</Location>

#<Location /printers>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

#<Location /printers/name>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#

## Anonymous access (default)
#AuthType None

## Require a username and password (Basic authentication)
#AuthType Basic
#AuthClass User

## Require a username and password (Digest/MD5 authentication)
#AuthType Digest
#AuthClass User

## Restrict access to local domain
#Order Deny,Allow
#Deny From All
#Allow From .mydomain.com
#</Location>

<Location /admin>
#
# You definitely will want to limit access to the administration functions.
# The default configuration requires a local connection from a user who
# is a member of the system group to do any admin tasks. You can change
# the group name using the SystemGroup directive.
#

AuthType Basic
AuthClass Group

## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.76 #### this is my workstation IP

#Encryption Required
</Location>

#
#
root@server1:~#
Kind Regards.

Luis C. Suárez
__________________
Humility is not a "Status"...
It's a "Gift"!

Last edited by LuisC-SM; 25th April 2006 at 00:39.
Reply With Quote
  #10  
Old 25th April 2006, 02:51
LuisC-SM LuisC-SM is offline
Member
 
Join Date: Apr 2006
Location: Webland, Mexico
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Ive been looking for threads related to cups and see taht probabilly the problem is my cups conf file Ive checked my /var/log/cups/error_log and this is what I found:
Quote:
I [23/Apr/2006:06:25:18 -0500] Listening to 7f000001:631
I [23/Apr/2006:06:25:18 -0500] Listening to c0a80164:631
E [23/Apr/2006:06:25:18 -0500] Unknown directive AuthGroupName on line 747.
I [23/Apr/2006:06:25:18 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [23/Apr/2006:06:25:18 -0500] Configured for up to 100 clients.
I [23/Apr/2006:06:25:18 -0500] Allowing up to 100 client connections per host.
I [23/Apr/2006:06:25:18 -0500] Full reload is required.
E [23/Apr/2006:06:25:18 -0500] LoadAllPrinters: Unable to open /etc/cups/printers.conf - No such file or directory
E [23/Apr/2006:06:25:18 -0500] LoadAllClasses: Unable to open /etc/cups/classes.conf - No such file or directory
I [23/Apr/2006:06:25:18 -0500] LoadPPDs: Read "/etc/cups/ppds.dat", 500 PPDs...
I [23/Apr/2006:06:25:18 -0500] LoadPPDs: No new or changed PPDs...
I [23/Apr/2006:06:25:18 -0500] Full reload complete.
E [23/Apr/2006:06:25:18 -0500] StartListening: Unable to bind socket for address c0a80164:631 - Cannot assign requested address.
so I checked my /etc/cups/cupsd.conf file to see if I had something wrong and seems to me that everything is fine :
Quote:
root@server1:~# cat /etc/cups/cupsd.conf

..........

########
######## Network Options
########

#
# Ports/addresses that we listen to. The default port 631 is reserved
# for the Internet Printing Protocol (IPP) and is what we use here.
#
# You can have multiple Port/Listen lines to listen to more than one
# port or address, or to restrict access:
#
# Port 80
# Port 631
# Listen hostname
# Listen hostname:80
# Listen hostname:631
# Listen 127.0.0.1:631
# Listen 192.168.1.100:631
#
# NOTE: Unfortunately, most web browsers don't support TLS or HTTP Upgrades
# for encryption. If you want to support web-based encryption you'll
# probably need to listen on port 443 (the "https" port...)
#
# NOTE 2: In order for the command-line and web interfaces to work, you
# must have at least one Port or Listen line that allows access from the
# local loopback address (localhost).
#

#Port 80
#Port 443
#Port 631
#
Listen 127.0.0.1:631
Listen 192.168.1.1:631

########
######## Browsing Options
########

........

########
######## Security Options
########

......
# AuthType: the authorization to use:
#
# None - Perform no authentication
# Basic - Perform authentication using the HTTP Basic method.
# Digest - Perform authentication using the HTTP Digest method.
#
# (Note: local certificate authentication can be substituted by
# the client for Basic or Digest when connecting to the
# localhost interface)
#
# AuthClass: the authorization class; currently only "Anonymous", "User",
# "System" (valid user belonging to group SystemGroup), and "Group"
# (valid user belonging to the specified group) are supported.
#
# AuthGroupName: the group name for "Group" authorization.

AuthGroupName shadow

............
# Encryption: whether or not to use encryption; this depends on having
# the OpenSSL library linked into the CUPS library and scheduler.
#
# Possible values:
#
# Always - Always use encryption (SSL)
# Never - Never use encryption
# Required - Use TLS encryption upgrade
# IfRequested - Use encryption if the server requests it
#
# The default value is "IfRequested".
#

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

#<Location /classes>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

#<Location /classes/name>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

<Location /jobs>
#
# You may wish to limit access to job operations, either with Allow
# and Deny lines, or by requiring a username and password.
#
AuthType Basic
AuthClass User
</Location>

#<Location /printers>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#</Location>

#<Location /printers/name>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#

## Anonymous access (default)
#AuthType None

## Require a username and password (Basic authentication)
#AuthType Basic
#AuthClass User

## Require a username and password (Digest/MD5 authentication)
#AuthType Digest
#AuthClass User

## Restrict access to local domain
#Order Deny,Allow
#Deny From All
#Allow From .mydomain.com
#</Location>

<Location /admin>
#
# You definitely will want to limit access to the administration functions.
# The default configuration requires a local connection from a user who
# is a member of the system group to do any admin tasks. You can change
# the group name using the SystemGroup directive.
#

AuthType Basic
AuthClass Group

## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.76

#Encryption Required
</Location>
Now I'm completely lost :

Luis C. Suárez
__________________
Humility is not a "Status"...
It's a "Gift"!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" Problem with ISPConfig chipw Installation/Configuration 6 30th October 2006 10:38
How To ISP Server setup with Ubuntu 5.10 (Breezy Badger) gymsmoke HOWTO-Related Questions 26 29th April 2006 14:46
ISPConfig + Perfect Setup Ubuntu 5.10 + Smtp SPAM problems lyndros Installation/Configuration 11 15th April 2006 18:07
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 19:26
ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" --> PHP5 spudse HOWTO-Related Questions 1 30th March 2006 16:50


All times are GMT +2. The time now is 05:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.