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.
Share file over internet.
Re: Share file over internet.
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/
You could also look at nc, e.g.: https://jameshfisher.com/2018/12/31/how ... netcat-nc/
Re: Share file over internet.
Can't do it by IP address?tunk wrote: ↑2019/06/21 09:32:23I 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/
Re: Share file over internet.
Yes, but you have to open the port in the firewall.
Re: Share file over internet.
Can you tell me how? Which port? Port 445?
Re: Share file over internet.
Which port did you use? - the example uses 8000.
Are you using firewalld or iptables?
Are you using firewalld or iptables?
Re: Share file over internet.
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