Share file over internet.

Issues related to configuring your network
Post Reply
hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Share file over internet.

Post by hack3rcon » 2019/06/21 08:16:12

Hello.
Is it possible to share file over the Internet and people download it via "IP/file"? I mean is not launch a web server like Apache.

Thanks.

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Share file over internet.

Post by tunk » 2019/06/21 09:32:23

I guess lighttpd is easier to setup than apache.
You could also look at nc, e.g.: https://jameshfisher.com/2018/12/31/how ... netcat-nc/

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Share file over internet.

Post by hack3rcon » 2019/06/21 12:24:04

tunk wrote:
2019/06/21 09:32:23
I guess lighttpd is easier to setup than apache.
You could also look at nc, e.g.: https://jameshfisher.com/2018/12/31/how ... netcat-nc/
Can't do it by IP address?

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Share file over internet.

Post by tunk » 2019/06/21 12:41:25

Yes, but you have to open the port in the firewall.

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Share file over internet.

Post by hack3rcon » 2019/06/22 05:16:03

Can you tell me how? Which port? Port 445?

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Share file over internet.

Post by tunk » 2019/06/22 11:17:58

Which port did you use? - the example uses 8000.
Are you using firewalld or iptables?

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Share file over internet.

Post by hack3rcon » 2019/06/22 12:53:27

My iptables rules are:

Code: Select all

# iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -s XXX.XXX.XXX.XXX/32 -p tcp -m tcp --dport 2031 -j ACCEPT 
-A INPUT -s XXX.XXX.XXX.XXX/32 -p tcp -m tcp --dport 3306 -j ACCEPT 
-A INPUT -s XXX.XXX.XXX.XXX/32 -p tcp -m tcp --dport 3306 -j ACCEPT 
-A INPUT -s XXX.XXX.XXX.XXX/32 -p tcp -m tcp --dport 3306 -j ACCEPT 
-A INPUT -s XXX.XXX.XXX.XXX/32 -p tcp -m tcp --dport 22 -j ACCEPT 
-A INPUT -s XXX.XXX.XXX.XXX/32 -p tcp -m tcp --dport 3306 -j ACCEPT 
-A INPUT -s XXX.XXX.XXX.XXX/32 -p tcp -m tcp --dport 3306 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT 

Post Reply