Search this Website

 

Ubuntu

UNIX

machine only visible locally

Category: Ubuntu-Absolute Beginner

machine only visible locally...

hi,

title pretty much describes it.
i have a server setup, and i can ssh and view the apache2 stuff locally easily.

however, if i put in the ip address of my interent (like my id address when i get it from a webpage). it just times out. i have redirects from the router to the machine, on ports 22, 80, and 8080. now im geussing the machine must have some kind of firewall?.

it needs to allow me to ssh and use the web to it. cause im thinking about using no-ip's services to set ip up so i can monitor my server and what it's doing from uni .


ubuntu does not have a firewall by default. i've setup the exact system you describe without problems.

there are 3 levels of testing you can do here:
* ping/ssh localhost
* ping/ssh local ip (192.168.x.x usually)
* ping/ssh external ip
if the first two work, the problem is in your router (or isp blocking the port).

i suggest you set up key-based ssh logins by the way: password knocking is rampant nowadays.


23 enabled tcp 6881 6999 192.168.0.200
24 enabled tcp 80 80 192.168.0.200
25 enabled tcp 22 22 192.168.0.200
26 enabled tcp 8080 8080 192.168.0.200

those are the entries in my router for forwarding the ports.

step one and two work fine from any machine, step 3 i can ping from any machine, but cant ssh in?.

my isp is iinet (western australia) and they have port blocking options which are disabled.

bojo@server:~$ ssh [interenet ip]
ssh: connect to host [internet ip] port 22: connection refused

ps. if you can help me access it from anywhere, i would like to have the key based logins to. but currently no one outside of 192.168.x.x can access the machine anyway.

is what happens when i try to ssh into the machine..... port forwarding is working for the bittorrent ports.


quote:
[sun apr 01 06:25:34 2007] [notice] apache/2.0.55 (ubuntu) php/5.1.6 configured -- resuming normal operations
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
grep: downloads/.torrents/: no such file or directory
grep: write error: broken pipe
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
grep: downloads/.torrents/: no such file or directory
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
grep: downloads/.torrents/: no such file or directory
grep: write error: broken pipe
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
grep: downloads/.torrents/: no such file or directory
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
grep: downloads/.torrents/: no such file or directory
grep: write error: broken pipe
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
grep: downloads/.torrents/: no such file or directory
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
grep: downloads/.torrents/: no such file or directory
grep: write error: broken pipe
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
grep: downloads/.torrents/: no such file or directory
traceback (most recent call last):
file "/usr/bin/tfqmanager.torrentflux", line 428, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5])
file "/usr/bin/tfqmanager.torrentflux", line 38, in run
f=open(qdirectory+"tfqmanager.pid",'w')
ioerror: [errno 13] permission denied: '/home/bojo/bittorrenttfqmanager.pid'
grep: downloads/.torrents/: no such file or directory
grep: write error: broken pipe
ls: /var/www/tf_bittornado/btphptornado.py: no such file or directory
ls: /var/www/tf_bittornado/btshowmetainfo.py: no such file or directory
ls: /var/www/tf_bittornado/btmakemetafile.py: no such file or directory
ls: /var/www/torrentflux/btphptornado.py: no such file or directory
ls: /var/www/torrentflux/btshowmetainfo.py: no such file or directory
ls: /var/www/torrentflux/btmakemetafile.py: no such file or directory
[sun apr 01 11:53:55 2007] [error] [client 192.168.0.4] file does not exist: /usr/share/torrentflux, referer: http://192.168.0.200/
[sun apr 01 11:53:55 2007] [error] [client 192.168.0.4] file does not exist: /var/www/phpmyadmin/favicon.ico
[sun apr 01 11:53:55 2007] [error] [client 192.168.0.4] file does not exist: /var/www/favicon.ico
[sun apr 01 11:59:38 2007] [error] [client 192.168.0.4] file does not exist: /var/www/themes, referer: http://192.168.0.200/phpmyadmin/db_create.php
[sun apr 01 12:00:25 2007] [error] [client 192.168.0.4] file does not exist: /var/www/themes, referer: http://192.168.0.200/phpmyadmin/db_i..._structure.php
[sun apr 01 12:01:38 2007] [error] [client 192.168.0.4] file does not exist: /var/www/themes, referer: http://192.168.0.200/phpmyadmin/db_d...4e1282f98c28be
[sun apr 01 12:01:45 2007] [error] [client 192.168.0.4] file does not exist: /var/www/themes, referer: http://192.168.0.200/phpmyadmin/db_o...tructure.ph p
[sun apr 01 12:01:57 2007] [error] [client 192.168.0.4] file does not exist: /var/www/themes, referer: http://192.168.0.200/phpmyadmin/db_d...uery _force=1
[sun apr 01 12:02:00 2007] [error] [client 192.168.0.4] file does not exist: /var/www/themes, referer: http://192.168.0.200/phpmyadmin/db_i...4e1282f98c28be
grep: downloads/.torrents/: no such file or directory
grep: downloads/.torrents/: no such file or directory
grep: write error: broken pipe
grep: downloads/.torrents/: no such file or directory
cd: 1: can't cd to /home/bojo/bittorrent
sh: downloads/: not found
grep: downloads/.torrents/: no such file or directory
traceback (most recent call last):
file "/var/www/html/tf_bittornado/btphptornado.py", line 451, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5:])
file "/var/www/html/tf_bittornado/btphptornado.py", line 397, in run
config, response, infohash, myid, rawserver, listen_port)
file "/var/www/html/tf_bittornado/bittornado/download_bt1.py", line 351, in __init__
self.appdataobj = configdir()
file "/var/www/html/tf_bittornado/bittornado/configdir.py", line 99, in __init__
os.mkdir(self.dir_root,0700) # exception if failed
oserror: [errno 13] permission denied: '/var/www/.bittornado'
grep: downloads/.torrents/: no such file or directory
grep: write error: broken pipe
grep: downloads/.torrents/: no such file or directory
grep: write error: broken pipe
cd: 1: can't cd to /home/bojo/bittorrent
sh: downloads/: not found
grep: downloads/.torrents/: no such file or directory
traceback (most recent call last):
file "/var/www/html/tf_bittornado/btphptornado.py", line 451, in ?
run(argv[1],argv[2],argv[3],argv[4],argv[5:])
file "/var/www/html/tf_bittornado/btphptornado.py", line 397, in run
config, response, infohash, myid, rawserver, listen_port)
file "/var/www/html/tf_bittornado/bittornado/download_bt1.py", line 351, in __init__
self.appdataobj = configdir()
file "/var/www/html/tf_bittornado/bittornado/configdir.py", line 99, in __init__
os.mkdir(self.dir_root,0700) # exception if failed
oserror: [errno 13] permission denied: '/var/www/.bittornado'
grep: downloads/.torrents/: no such file or directory

apache logs...


quote:
originally posted by 13ojo
step one and two work fine from any machine, step 3 i can ping from any machine, but cant ssh in?.

ok. your router probably answers the pings from internet side. i guess you could try removing the router from the loop for debug purposes, and connect your machine straight to the internet (just to check if the isp port blocking really is turned off). otherwise i can't think of anything else.


okay, the router is the actually internet connection.. so that's a no go.

it does seem to work however, i gave a friend my ip over a instant messenger client, and he was able to view my web-pages!.

i just cant view them here via entering my ip?, any idea.