xxxxxxxxxx
======
LEAKED
======
apiKey: AIzaSyBIklC6-GUCwA9d_F8VRtKQQwkz6rX_ZEM
authDomain: platy-pixel-d07cd.firebaseapp.com
projectId: platy-pixel-d07cd
storageBucket: platy-pixel-d07cd.appspot.com
messagingSenderId: 172079264802
appId: 1:172079264802:web:9b5194bd5a6d566fe6067b
======
LEAKED
======
xxxxxxxxxx
ip link
sudo nano /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses:
- 192.168.121.221/24
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
search: []
routes:
- to defualt
via: 192.168.121.1
sudo netplan apply
xxxxxxxxxx
/* Manual Configuration */
#open the /etc/network/interfaces file
` vim /etc/network/interfaces`
#add
iface enp0s3 inet static
address `your ip 10.0.1.20/24`
gateway '10.0.1.1`
dns-nameservers 8.8.8.8
#restart the server to apply changes
`sudo systemctl restart`
#verify
`ip a`
`ping google.com`
xxxxxxxxxx
# install net-tools
sudo apt install net-tools
# find default gatevay
route -n
#Kernel IP routing table
#Destination Gateway Genmask Flags Metric Ref Use Iface
#0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 enp0s3
#172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
#192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3
# iface is enp0s3 and Gateway is 192.168.1.1
# edit yaml file on /etc/netplan/
cd /etc/netplan/ && find . -name '*.yaml' -print0 | xargs -0o sudo vim
#### file content
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
dhcp6: no
addresses:
- 192.168.1.75/24
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses:
- 1.1.1.1
- 1.0.0.1
#### end of content
# then restart netplan
sudo netplan try
xxxxxxxxxx
# Get route of Network (Gateway and Network Range).
route -n
# Netmask and Subnet. (get interface name)
ifconfig
# If you have not already.
sudo apt install -y network-manager
# /etc/netplan/<config>
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
addresses: [10.0.2.10/24]
gateway4: 10.0.2.1
nameservers:
addresses: [8.8.8.8,8.8.8.4]
sudo netplan try
sudo netplan generate
sudo netplan apply
xxxxxxxxxx
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 10.10.10.2/24
routes:
- to: default
via: 10.10.10.1
nameservers:
search: [mydomain, otherdomain]
addresses: [10.10.10.1, 1.1.1.1]