Debian10 Final

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 22

DSMcode Public Linux Server

Besplatni VPS
Hostovanje sajta
Skinuti debian linux ISO fajl sa debian.org
debian-10.4.0-i386-xfce-CD-1 658kB
Narezati boot CD ili sa Rufus boot flash USB
Instalirati na stari lap top
F12 boot meni
- grafik instaler
- jezik English
- No ne WiFi nego LAN kabl
- konektovati lan kablom lap top sa ruterom
- izabrati mreznu karticu
- Yes use a network mirror svi potrebni programi
- debian.org
- proxy nista
- Hostname forsing koji zelis
- Pass kojekude koji zelis
- Full name usera forsing koji zelis
- User name forsing
- Pass kojekude
- Eastern lokacija istocna Evropa
- Instalacija traje duze
- Guided – use entire disk izabrati, koristiti ceo disk
- All files in one partition jedna particija
- Finish
- Write the changes to disks Yes
- Debian desk ostaviti sve kako jest
- Install the GRUB Yes
- Odaberemo nas disk
- Instalacija je zavrsena
- Restart
- UN / pass forsing / kojekude
- Use defulte config
- Terminal dobije se prompt forsing@forsing:~$
Uptade linuxa preko terminala
$ apt-get update
$ apt-get upgrade
$ apt-get dist-upgrade
$ apt-get autoremove
======================

$ apt-get install openssh-server y

dozvola root korisniku za ssh konekciju na udaljeni racunar

$ nano /etc/ssh/sshd_config
izmeniti u PermitRootLogin yes

Nano je text editor. Kretanje kurzora strelicama. Da se sacuva izmena ctrl+x pa y pa enter

Resetovati ssh

$ service ssh restart


da bi ostvarili konekciju izmedju racunara
moramo videti koja je lokalna ip ovog servera
instalisati net tools

$ apt-get install net-tools


koji je lokalni ip servera

$ ifconfig
>>>
enp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::222:19ff:fee8:f621 prefixlen 64 scopeid 0x20<link>
ether 00:22:19:e8:f6:21 txqueuelen 1000 (Ethernet)
RX packets 60015 bytes 65826112 (62.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 39378 bytes 4210114 (4.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536


inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 22268 bytes 2202118 (2.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 22268 bytes 2202118 (2.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>>>

vidi se IP adresa servera 192.168.1.11

prelazi se na drugi racunar da se konektujemo na server

standardni cmd ne podrzava ssh komande


pa skinuti git bash https://gitforwindows.org/
Git-2.27.0-64-bit 47kB instalisati yes
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git bash sa drugog racunara

nn@ror MINGW64 /
$ dobije se taj prompt

$ ssh [email protected]
yes
pass: kojekude

root@forsing:~# dobije se taj prompt

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ponovo uraditi update i upgrade

# sudo apt-get update


# sudo apt-get upgrade

# sudo apt-get install default-mysql-server y

*** GENERISANJE SECRET KEY ***

# sudo apt install pwgen


# pwgen -s 32 1

npr

6plmHVYMXTZb2ZB16LvZFvGyHiaf3v4j

meApEMabFw06QxecW7t83e0rOS1qr1WU

Izlista sadrzaj direktorijum


# ls -l
https://www.digitalocean.com/community/tutorials/how-to-install-phpmyadmin-from-
source-debian-10

***** Initial Server Setup with Debian 10


https://www.digitalocean.com/community/tutorials/initial-server-setup-with-debian-
10

***** How To Install Linux, Apache, MariaDB, PHP (LAMP) stack on Debian 10
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-
mariadb-php-lamp-stack-on-debian-10

https://www.phpmyadmin.net/

domen
https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-
encrypt-on-debian-10
https://www.digitalocean.com/community/tutorials/how-to-point-to-digitalocean-
nameservers-from-common-domain-registrars
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-
mariadb-php-lamp-stack-on-debian-10
#step-4-%E2%80%94-creating-a-virtual-host-for-your-website

LAMP stack tutorial

################################################################################

https://computingforgeeks.com/install-phpmyadmin-with-apache-on-debian-10-buster/
// How To Install phpMyAdmin with Apache on Debian 10 (Buster)
// Step 1: Install PHP
// How To Install PHP / PHP 7.3 on Debian 10 Buster
https://computingforgeeks.com/install-php-on-debian-10-buster/

# sudo apt -y update


# sudo apt -y install wget php php-cgi php-mysqli php-pear php-mbstring
php-gettext libapache2-mod-php php-common php-phpseclib php-mysql
# sudo apt -y install php-cli php-fpm php-json php-pdo php-mysql php-zip
php-gd php-mbstring php-curl php-xml php-pear php-bcmath
# php -v
>>> PHP 7.3.14

# sudo a2enmod php7.3


# sudo systemctl restart apache2
// Step 2: Install MariaDB Database Server
// How To Install MariaDB 10.4 on Debian 10 (Buster)
https://computingforgeeks.com/how-to-install-mariadb-on-debian/

# sudo apt -y update


# sudo apt -y install software-properties-common gnupg2
# sudo apt -y upgrade
# sudo reboot
>>> restart

# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com


0xF1656F24C74CD1D8
# sudo add-apt-repository 'deb [arch=i386]
http://mariadb.mirror.liquidtelecom.com/repo/10.4/debian buster main'
# sudo apt update
# sudo apt list –upgradable

# sudo mysql_secure_installation n n n n n n ili sve y

>>>
Switch to unix_socket authentication [Y/n] y
Enabled successfully!
Reloading privilege tables..
... Success!

Change the root password? [Y/n] y


New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!

Remove anonymous users? [Y/n] y


... Success!

Disallow root login remotely? [Y/n] y


... Success!

Remove test database and access to it? [Y/n] y


- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reload privilege tables now? [Y/n] y


... Success!
>>>
da bi se ulogovali phpmyadmin
treba postaviti password za root user i mysql

# mysql -u root -p
kojekude

MariaDB [(none)]> sad taj kurzor

 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('kojekude');


 GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO
'forsing'@'localhost' IDENTIFIED BY 'password';
 GRANT ALL PRIVILEGES ON *.* TO 'forsing'@'localhost' IDENTIFIED BY
'kojekude' WITH GRANT OPTION;
 exit

# service apache2 restart


# sudo systemctl reload apache2

instalisati extenziju php-mysqli


# apt-get install php-mysqli

# service apache2 restart

# sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf


# sudo nano /etc/apache2/conf-available/phpmyadmin.conf
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride All

# sudo systemctl restart apache2


# service mysql restart
# service apache2 restart
// Step 3: Install Apache Web Server
# sudo apt-get -y install wget apache2 y
// Step 4: Install phpMyAdmin on Debian 10
// Download latest version of phpMyAdmin with wget command.
// skinuti pakovanje phpMyAdmin
# DATA="$(wget https://www.phpmyadmin.net/home_page/version.txt -q -O-)"
URL="$(echo $DATA | cut -d ' ' -f 3)"
VERSION="$(echo $DATA | cut -d ' ' -f 1)"
wget https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-$
{VERSION}-all-languages.tar.gz
// For English language only package, use:
wget https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-$
{VERSION}-english.tar.gz
// Extract downloaded Archive:
// raspakovati
# tar xvf phpMyAdmin-${VERSION}-all-languages.tar.gz
// Move the resulting folder to /usr/share/phpmyadmin folder.
// prebaciti sve na drugo mesto
# sudo mv phpMyAdmin-*/ /usr/share/phpmyadmin
// Create directory for phpMyAdmin temp files.
// Pravimo novi folder
# sudo mkdir -p /var/lib/phpmyadmin/tmp
// Dajemo dozvole
# sudo chown -R www-data:www-data /var/lib/phpmyadmin
// Create directory for phpMyAdmin configuration files such as htpass file.
// Pravimo jos jedan folder
# sudo mkdir /etc/phpmyadmin/

// Create phpMyAdmin configuration file.


// Kopiramo templejt konfiguracionog fajla u nas novi konf fajl
# sudo cp /usr/share/phpmyadmin/config.sample.inc.php
/usr/share/phpmyadmin/config.inc.php

// Edit with nano the file /usr/share/phpmyadmin/config.inc.php and set secret


passphrase 32 karaktera:
$cfg['blowfish_secret'] = 'H2OxcGXxflSd8JwrwVlh6KW6s2rER63i';

// plus Configure Temp directory:


$cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';
Otvaramo sa nano text editorom i pravimo izmene

# sudo nano /usr/share/phpmyadmin/config.inc.php


>>>>>>> ubacimo 32 karaktera secret key moze se generisati sa nete ili sa pwgen <<<<<<<
$cfg['blowfish_secret'] = 'H20xcGXxflSd8JwrwVlh6KW6s2rER63i'; /* YOU MUST FILL IN
THIS FOR COOKIE AUTH! */

$cfg['Servers'][$i]['controluser'] = 'forsing';
$cfg['Servers'][$i]['controlpass'] = 'kojekude';

/* Storage database and tables */


$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';

$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';

# sudo nano /usr/share/phpmyadmin/.htaccess


AuthType Basic
AuthName "Restricted Files"
AuthUserFile /usr/share/phpmyadmin/.htpasswd
Require valid-user

Nova sifra
# sudo htpasswd -c /usr/share/phpmyadmin/.htpasswd forsing
kojekude
kojekude
// Step 5: Configure Apache web Server
// Create phpMyAdmin Apache configuration file:
# sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf
<<< sudo vim /etc/apache2/conf-enabled/phpmyadmin.conf >>>

// And paste below contents to the file:

>>>>>>>

# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
Options SymLinksIfOwnerMatch
DirectoryIndex index.php

<IfModule mod_php5.c>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
</IfModule>
<FilesMatch ".+\.php$">
SetHandler application/x-httpd-php
</FilesMatch>

php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir
/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-
gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/
tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
php_admin_value mbstring.func_overload 0
</IfModule>
<IfModule mod_php.c>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
</IfModule>
<FilesMatch ".+\.php$">
SetHandler application/x-httpd-php
</FilesMatch>

php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir
/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-
gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/
tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
php_admin_value mbstring.func_overload 0
</IfModule>

</Directory>

# Authorize for setup


<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authz_core.c>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</IfModule>
</Directory>

# Disallow web access to directories that don't need it


<Directory /usr/share/phpmyadmin/templates>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Require all denied
</Directory>
>>>>>>>

// You can restrict access from specific IP by adding line like below:
Require ip 127.0.0.1 192.168.1.0/24

RADI RADI RADI RADI RADI RADI RADI RADI RADI RADI RADI RADI

// Restart apache web server.


# sudo systemctl restart apache2

# ls -l
# cd /var/www/html
# ls -l

Startna stranica php


# nano index.php
<h1>FORSING PUBLIC WEB SERVER</H1>

Uklanjanje startne stranice html


# rm index.html

# cd ..
# cd ..
# cd ..
http://192.168.1.11/
// Step 6: Visit phpMyAdmin Web interface
// Access phpMyAdmin Web interface on http://192.168.1.11/phpmyadmin
// Use your database credentials username & password to login.

// phpMyAdmin dashboard is displayed upon a successful login.

Conclusion
You now have a phpMyAdmin installed on Debian 10.
You can start managing your database server from a Web dashboard
and stress less on mastering MySQL command line.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

git bash sa drugog racunara


ssh [email protected]
yes
pass: kojekude

>>> root@forsing:~#
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

==================================

# sudo apt install pwgen


# pwgen -s 32 1

6plmHVYMXTZb2ZB16LvZFvGyHiaf3v4j
meApEMabFw06QxecW7t83e0rOS1qr1WU

==================================

kako obrisati direktorijum koji nije prazan


# rm -rf direktorijum
kako videti svoju ip adresu

hostname –I
>>> 192.168.1.11

ili
# /sbin/ifconfig
>>>
enp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::222:19ff:fee8:f621 prefixlen 64 scopeid 0x20<link>
ether 00:22:19:e8:f6:21 txqueuelen 1000 (Ethernet)
RX packets 4072 bytes 4214721 (4.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3187 bytes 334709 (326.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536


inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 315 bytes 571427 (558.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 315 bytes 571427 (558.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>>>

ili
# ip addr show
>>>
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen
1000
link/ether 00:22:19:e8:f6:21 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.11/24 brd 192.168.1.255 scope global dynamic noprefixroute enp8s0
valid_lft 84152sec preferred_lft 84152sec
inet6 fe80::222:19ff:fee8:f621/64 scope link noprefixroute
valid_lft forever preferred_lft forever
>>>
Detekcija linux distribucije
# cat /etc/issue
>>> Debian GNU/Linux 10 \n \l

Preimenovanje ekstenzija datoteka iz velikih u mala slova


rename -v 's/\.JPG$/\.jpg/' *.JPG

Vreme zadnjeg reboota


root@forsing:/# who -b
system boot 2020-06-06 10:30

vremena koje je proteklo od zadnjeg reboota


root@forsing:/# uptime
11:28:38 up 58 min, 2 users, load average: 0.00, 0.01, 0.04

Backup baze podataka iz komandne linije:


mysqldump --add-drop-table -u username -p tablename > backupfilename.sql

http://wiki.open.hr/wiki/GRUB_2_za_pocetnike
boot

10.............................................
sftp - klijent za prenos vise datoteka izmeduu dva racunara, zamena za ftp .
sftp korisnik@ime_racunara
Ili u nasem slucaju,povezivanje na nalog korisnika krokodil :
sftp [email protected]
Posle zadavanja komande potrebno je upisati i lozinku za krokodil nalog. Dalji rad
se zasniva na
skup komandi od kojih ćemo nabrojati najcesce koriscene:
- ? ili help - daje spisak raspolozivih komandi sa kratkim uputstvima
- cd - promena radnog direktorijuma na serveru
- lcd - promena radnog direktorijuma na lokalnom racunaru
- pwd - ispisuje radni direktorijum na serveru
- lpwd - ispisuje radni direktorijum na lokalnom racunaru
- dir ili ls - prikazuje sadrzaj radnog direktorijuma na serveru
- lls - prikazuje sadrzaj radnog direktorijuma na lokalnom racunaru
- get ime_datoteke - prenos fajla sa servera na lokalni racunar
- mget uzorak - prenos veceg broja fajlova sa servera na lokalni racunar (uzorak
sadrzi
standardne dzoker-znake)
- put ime_datoteke - prenos fajla sa lokalnog racunara na server
- mput uzorak - prenos veceg broja fajlova sa lokalnog racunara na server
- quit ili exit - kraj rada u SFTP-u

9.............................
scp-program za kopiranje pojedinacnih fajlova izmedju dva racunara
scp fajl-koji-se-kopira.ext
[email protected]:putanja/do/direktorijuma/u/koji/se/kopira
exampe
scp nekitekst.txt [email protected]:
kopira nekitekst.txt u /home/krokodil/
koji su hostovi prisutni
# fping -c1 -gds 192.168.1.0/24 2>&1| egrep -v "ICMP|xmt"
odlicno radi jako brzo
>>>
csp3.zte.com.cn : [0], 84 bytes, 0.25 ms (0.25 avg, 0% loss)
192.168.1.2 : [0], 84 bytes, 5.54 ms (5.54 avg, 0% loss)
ror : [0], 84 bytes, 1.35 ms (1.35 avg, 0% loss)
forsing : [0], 84 bytes, 0.08 ms (0.08 avg, 0% loss)

254 targets
4 alive
250 unreachable
0 unknown addresses

250 timeouts (waiting for response)

0.08 ms (min round trip time)


1.80 ms (avg round trip time)
5.54 ms (max round trip time)
3.648 sec (elapsed real time)

root@forsing:/# fping -c1 -gds 192.168.1.11/24 2>&1| egrep -v "ICMP|xmt"


>>>
csp1.zte.com.cn : [0], 84 bytes, 0.24 ms (0.24 avg, 0% loss)
192.168.1.2 : [0], 84 bytes, 9.76 ms (9.76 avg, 0% loss)
ror : [0], 84 bytes, 1.57 ms (1.57 avg, 0% loss)
forsing : [0], 84 bytes, 0.07 ms (0.07 avg, 0% loss)
huawei_p_smart_2019-8dd3e : [0], 84 bytes, 133 ms (133 avg, 0% loss)

254 targets
5 alive
249 unreachable
0 unknown addresses

249 timeouts (waiting for response)


0.07 ms (min round trip time)
29.0 ms (avg round trip time)
133 ms (max round trip time)
3.634 sec (elapsed real time)
Router ZXHN H168N V3.1.
192.168.1.1

ZXHN H168N V3.1. username: admin password: ztonpk

http://csp1.zte.com.cn/

admin / KojeKude7

Device Status

Device Type ZXHN H168N V3.1

Device Serial No. ZTERRTHJAJ40337

HW Version V1.0

SW Version V3.1.0T9_SRB

BOOT Version V1.0.1

LAN

Allocated Address

MAC Address IP Address Remaining Lease Host Name Port

e0:aa:96:37:28:38 192.168.1.4 21 h 6 min 12 s Galaxy-J3 SSID1

80:19:34:7f:78:62 192.168.1.7 19 h 1 min 42 s ror SSID1

7c:11:be:92:b3:ec 192.168.1.9 20 h 7 min 31 s iPhone SSID1

00:22:19:e8:f6:21 192.168.1.11 17 h 30 min 55 s forsing LAN1

04:b4:29:71:89:05 192.168.1.6 13 h 7 min 24 s Galaxy-A50 SSID1

30:a1:fa:0b:12:9a 192.168.1.5 13 h 35 min 53 s HUAWEI_P_smart_2019-8dd3e SSID1

6c:00:6b:d8:f5:4f 192.168.1.3 21 h 4 min 37 s Galaxy-A70 SSID1

10:08:c1:01:b0:91 192.168.1.2 17 h 32 min 43 s  SSID1


DHCP Server

DHCP Server

 On      Off

LAN IP Address
192 168 1 1
.  .  . 

Subnet Mask
255 255 255 0
.  .  . 

DHCP Start IP Address


192 168 1 2
.  .  . 

DHCP End IP Address


192 168 1 254
.  .  . 

Gateway
192 168 1 1
.  .  . 

Assign IspDNS

Primary DNS
192 168 1 1
.  .  . 

Secondary DNS
0 0 0 0
.  .  . 

Lease Time Mode

  

Custom Lease Time

s
Remote Service Port Control - IPv4

HTTP

80

SSH

22

TELNET

23

HTTPS

443

DHCP Server
DHCP Server

 On      Off

LAN IP Address
192 168 1 1
.  .  . 

Subnet Mask
255 255 255 0
.  .  . 

DHCP Start IP Address


192 168 1 2
.  .  . 

DHCP End IP Address


192 168 1 254
.  .  . 

Gateway
192 168 1 1
.  .  . 

Assign IspDNS

Primary DNS
192 168 1 1
.  .  . 

Secondary DNS
0 0 0 0
.  .  . 

Lease Time Mode

  

Custom Lease Time

Forvardovati port

Koja je ip adresa naseg rutera


U komand prompt kucamo ipconfig
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255

Deafault Gateway 192.168.1.1

Otvaramo 80 port i stavljamo lokalni ip servera 192.168.1.11

Port Range Forwarding


Start port 80 end port 80

Internet /Security /Port Forwarding

https://whatismyipaddress.com/private-ip
Reserved for private networks.

192.168.0.0 - 192.168.255.255 (65.536 IP addresses)

Kupiti domen da ip adresa bude nevidljiva

https://www.dreamwebhosting.net/
forsing.in.rs 420 din/god
Name Server 1
dns1.dwhost.net
Name Server 2
dns2.dwhost.net
Name Server 3
dns3.dwhost.net

https://www.cloudflare.com/

*******************************************************************
- treba ti static IP zovi provajdera da ti daju static ip
Zahtev za statickom IP adresom podnosi se u poslovnici, od strane potpisnika ugovora,
mesecna naknada iznosi 590,00 dinara.  Telekom MTS

- zovi provajdera pitaj da li ti blokiraju otvaranje portova

*******************************************************************

sakrijem ip TCPShield IceRush

root@forsing:~# sudo ufw app list


Available applications:
AIM
Bonjour
CIFS
CUPS
DNS
Deluge
IMAP
IMAPS
IPP
KTorrent
Kerberos Admin
Kerberos Full
Kerberos KDC
Kerberos Password
LDAP
LDAPS
LPD
MSN
MSN SSL
Mail submission
NFS
OpenSSH
POP3
POP3S
PeopleNearby
SMTP
SSH
Socks
Telnet
Transmission
Transparent Proxy
VNC
WWW
WWW Cache
WWW Full
WWW Secure
XMPP
Yahoo
qBittorrent
svnserve
root@forsing:~#

If you inspect the WWW Full profile, it shows that it enables traffic to ports 80 and 443:

root@forsing:~# sudo ufw app info "WWW Full"


Profile: WWW Full
Title: Web Server (HTTP,HTTPS)
Description: Web Server (HTTP,HTTPS)

Ports:
80,443/tcp
Allow incoming HTTP and HTTPS traffic for this profile:
root@forsing:~# sudo ufw allow in "WWW Full"
Rules updated
Rules updated (v6)
root@forsing:~#

=================================================

https://www.youtube.com/watch?v=HnOXZQuAh9o
Osnovne komande u Linux-u

ip route
ip adresa rutera (najniza) i ip adresa mog racunara

>>>
root@forsing:~# ip route
default via 192.168.1.1 dev enp8s0 proto dhcp metric 100
169.254.0.0/16 dev enp8s0 scope link metric 1000
192.168.1.0/24 dev enp8s0 proto kernel scope link src 192.168.1.11 metric 100
root@forsing:~#
>>>

kao root admin (sudo)


sudo netdiscover -r 192.168.1.0/24
skenira sve ip adrese i otkriva koji uredjaji su konektovani
izaberes metu

program wireshark prati protok na mrezi


https://www.wireshark.org/download.html
=====================================================

https://www.youtube.com/watch?v=SujkuLwu0ZM
Kako besplatno napraviti Public Server (VPS) od starog laptopa
https://pastebin.com/Xq36Lhkw

H20xcGXxflSd8JwrwVlh6KW6s2rER63i

https://www.y2mate.com/channel/UCmsyIOfiqN5fhQuMwEhwvOw
svi

You might also like