LinuxQuestions.org
Help answer threads with 0 replies.
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 04-19-2012, 03:35 AM   #16
Muhammad Awais
LQ Newbie
 
Registered: Apr 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled

No i dont know, Basically i m new on linux
 
Old 04-19-2012, 03:39 AM   #17
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally Posted by Muhammad Awais View Post
This ip is assign to us by our internet provider.
Internet is involved.
No, is it on the server? A firewall?

You're REALLY making us work FAR too hard for this...
 
Old 04-19-2012, 03:40 AM   #18
Muhammad Awais
LQ Newbie
 
Registered: Apr 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
This is server
 
Old 04-19-2012, 03:47 AM   #19
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,479

Rep: Reputation: 1220Reputation: 1220Reputation: 1220Reputation: 1220Reputation: 1220Reputation: 1220Reputation: 1220Reputation: 1220Reputation: 1220
What is the result of nmap -p1-10000 -T4 -sS 88.44.44.55
 
Old 04-19-2012, 03:47 AM   #20
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Hmm, ok so putting your server directly on the net is a REALLY bad idea... you should change that. Unless this is some one off hosted service.

But at least it should make it simple, and you should only need to open port 22 to that interface and go off from there. What distro is the server? You can show us your iptables output ("iptables -vnL") and also actually confirm that ssh is running with a "netstat -plnt".

How do you get into this box at present if you can't ssh to it?
 
Old 04-19-2012, 03:51 AM   #21
Muhammad Awais
LQ Newbie
 
Registered: Apr 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2012-04-19 01:48 EDT
Interesting ports on mbl-65-154-78.dsl.net.pk (88.44.44.55):
Not shown: 9984 closed ports
PORT STATE SERVICE
20/tcp filtered ftp-data
21/tcp filtered ftp
22/tcp filtered ssh
23/tcp filtered telnet
53/tcp open domain
80/tcp open http
123/tcp filtered ntp
443/tcp filtered https
3306/tcp filtered mysql
3389/tcp filtered ms-term-serv
6080/tcp filtered unknown
7070/tcp filtered realserver
7554/tcp filtered unknown
8000/tcp filtered http-alt
8080/tcp filtered http-proxy
9554/tcp filtered unknown

Nmap finished: 1 IP address (1 host up) scanned in 117.442 seconds
 
Old 04-19-2012, 04:01 AM   #22
descendant_command
Member
 
Registered: Mar 2012
Posts: 754

Rep: Reputation: 158Reputation: 158
So 88.44.44.55 is the public IP of your router in Pakistan?
 
Old 04-19-2012, 04:02 AM   #23
Muhammad Awais
LQ Newbie
 
Registered: Apr 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Yes sir...
 
Old 04-19-2012, 04:04 AM   #24
Muhammad Awais
LQ Newbie
 
Registered: Apr 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Chain INPUT (policy ACCEPT 33 packets, 3561 bytes)
pkts bytes target prot opt in out source destination
33 3561 asterisk all -- * * 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 asterisk all -- * * 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT 32 packets, 3230 bytes)
pkts bytes target prot opt in out source destination

Chain asterisk (2 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 178.33.62.28 0.0.0.0/0
0 0 DROP all -- * * 37.58.74.106 0.0.0.0/0



Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2752/./hpiod
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2875/mysqld
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 2792/xinetd
tcp 0 0 0.0.0.0:5038 0.0.0.0:* LISTEN 2975/asterisk
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2486/portmap
tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 2975/asterisk
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 3194/Xorg
tcp 0 0 0.0.0.0:1008 0.0.0.0:* LISTEN 2522/rpc.statd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2770/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2779/cupsd
tcp 0 0 0.0.0.0:1720 0.0.0.0:* LISTEN 2975/asterisk
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2908/sendmail
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 2757/python
tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN 7912/java
tcp 0 0 :::8009 :::* LISTEN 7912/java
tcp 0 0 :::8080 :::* LISTEN 7912/java
tcp 0 0 :::6000 :::* LISTEN 3194/Xorg
tcp 0 0 :::80 :::* LISTEN 2936/httpd
tcp 0 0 :::22 :::* LISTEN 2770/sshd
tcp 0 0 :::443 :::* LISTEN 2936/httpd
 
Old 04-19-2012, 04:06 AM   #25
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally Posted by descendant_command View Post
So 88.44.44.55 is the public IP of your router in Pakistan?
Yes sir?? You just said it was your server... I give up.
 
Old 04-19-2012, 04:10 AM   #26
Muhammad Awais
LQ Newbie
 
Registered: Apr 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Sorry i just waste lot of ur time...

88.44.44.55 This is our server that is in Germany.
66.33.22.11 This the public IP of our router in Pakistan.
192.168.1.1 This is my computer's IP.
 
Old 04-19-2012, 04:12 AM   #27
descendant_command
Member
 
Registered: Mar 2012
Posts: 754

Rep: Reputation: 158Reputation: 158
So you have ssh access to your server in germany to download your logs manually?
I assume yes so ...

The command to schedule on your client machine would be
Code:
you@client:-$ scp user@server:/path/to/logfile /local/path/to/put/logfile
You can find out about key-based ssh authentication so you don't need to type your password each time.
 
Old 04-19-2012, 04:16 AM   #28
Muhammad Awais
LQ Newbie
 
Registered: Apr 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Should i run this command on our server???
 
Old 04-19-2012, 04:17 AM   #29
Muhammad Awais
LQ Newbie
 
Registered: Apr 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
I need a command which i run on 88.44.44.55 and backup downloaded on 192.168.1.1.
 
Old 04-19-2012, 04:18 AM   #30
descendant_command
Member
 
Registered: Mar 2012
Posts: 754

Rep: Reputation: 158Reputation: 158
No, you run it on your client.

---------- Post added 04-19-12 at 09:18 PM ----------

Quote:
Originally Posted by Muhammad Awais View Post
I need a command which i run on 88.44.44.55 and backup downloaded on 192.168.1.1.
Why?
You are having enough trouble doing it the easy way...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cilent to transfer file through NFS to server Alck Linux - Server 2 07-23-2009 08:40 PM
file transfer server required ltodd2 Linux - Software 3 06-19-2009 03:48 AM
Secure file transfer server - tools ? taphagreg Linux - Security 1 03-19-2007 10:52 PM
a simple file transfer server.. sachitha Programming 2 09-09-2006 08:08 PM
Transfer file from slack to school server mustangfanatic01 Slackware 2 11-27-2005 02:58 AM


All times are GMT -5. The time now is 03:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration