Linux Networking

18K

Solutions

15K

Contributors

The variety of Linux distributions creates myriad issues relating to configuration and operations when computers are networked, not the least of which is the use of various network management applications, some of which are included with specific distributions, while others are standalone applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

hi,
just a general question
few days before I got ec council storm device (rasbian Pi) to do my ech course
does anyone own this device ?  
1- I can’t find any power button to turn it on.
2- the device came with a USB cable. but if I plug to my laptop it turns on- but doesn’t charge at all. cannot use my iPhone charging adapter as well.   does it have a separate charging adapter ??
and if it’s charged, how do I turn it on without power button ?
0
Build an E-Commerce Site with Angular 5
LVL 13
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Hi,
1. How to resolve issue below?

[code][root@28-218-217-172-on-nets home]# chown -R smb01 ~/home/share
chown: cannot access ‘/root/home/share’: No such file or directory
[root@28-218-217-172-on-nets home]#

Open in new window

[/code]
I want to grant write permission to user smb01.

2. Is "ls -l" enough to list out all rights of user smb01 on folder /home/share? Is there any other command?
0
I'm new to both Corosync and Pacemaker. I've looked through the documentation, and some tutorials - but I'm not sure my need is discussed. I have worked with other HA packages, so I'm familiar with most of the concepts.

In all of the tutorials, they discuss setting up a "floating IP" which is an IP address (apparently associated with a service), that is assigned automagically by Pacemaker/Corosync when the service needs to be failed over to another node.  

However, in my environment, I can't use a floating IP address, specifically. ALL of the IP addresses, to ALL computers (including my servers) are assigned by DHCP based on MAC address. The MAC-to-IP association is made via a DNS adm tool (that I do have access to.)

How I have managed failover of this sort in the past is to create virtual NICs on both machines (so BOTH machines each have two VNICs, which have the same MAC addresses). Then, if I "ifconfig up" and/or "ifconfig down" the VNICs, I defacto control which server holds the IP address.

For example:

Node 1:
# ip link add link enp2s0 address 00:11:11:11:11:11 enp2s0.1 type macvlan
# ip link add link enp2s0 address 00:11:11:11:11:01 enp2s0.2 type macvlan
# ifconfig enp2s0.1 up
# ifconfig enp2s0.2 down
# dhclient -v enp2s0.1 # obtains IP 14x.xxx.xxx.001

Node 2:
# ip link add link eno1 address 00:11:11:11:11:11 eno1.1 type macvlan
# ip link add link eno1 address 00:11:11:11:11:01 eno1.2 type macvlan
# ifconfig 

Open in new window

0
i have a centos 7 and installing httpd on it.
i open firewall for port 80 and start httpd services. service is running ok.

in my etc/hosts ihave
127.0.0.1 localhost localhost.localdomain
..
..
10.10.1.10  localhost

in my httpd.conf  ihave
ServerName 10.10.1.10

browse 10.10.1.10 says :  Not possible to connect to website 10.10.0.10

what is wrong here?
0
Hi Network Gurus,

I'm running a Linux lubuntu running PPTP VPN Server (PoPToP version 1.4.0).  I can connect externally to the VPN server however I can't browse the local network, nor browse the internet.

(I know PPTP isn't secure but i'll address that another time)

What routes do I need to add to be able to browse the local network and internet when connected to VPN?

Network Gateway is 192.168.178.1

VPN Server is 192.168.178.58

VPN is setup as server 192.168.0.1 with client addresses as 192.168.1.* (i'm assuming subnet 255.255.0.0?)

Thanks for your help and please ask if you need more info

Cheers,
Rob
0
how from nginx disable url with "//"
0
Adding User to Ubuntu

I need a user that I can use when I do not want to risk doing damage to my Ubuntu installation.

So, I ran

sudo su

then ran

adduser curiouswebster

following these instructions,
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04

is ran
usermod -aG sudo curiouswebster

but doesn't this add root privileges for curiouswebster??

If so, please help me downgrade the permissions.

I was hoping to log in as curiouswebster and install various systems, like Apache, MySQL, PHP and WordPress.

Shouldn't I use root for this?

Also, how do I log in as curiouswebster?

Thanks
0
What excatly does
iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp -d 10.0.0.2 --dport 4441 -j DNAT --to-destination 10.0.2.3:4441
mean (including the parameters)
0
I am trying to mount drives using autofs. There are 3 directories that I want to mount: home, data, and web. The mount for /home works but data and web don't work. When I mounted /data and /web manually, the shares showed up. Below has the log:
Jun 10 11:09:18 testdaviddo13 automount: Starting automounter version 5.0.7-99.el7, master map auto.master
Jun 10 11:09:18 testdaviddo13 automount: using kernel protocol version 5.02
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: reading master files auto.master
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: spawn_mount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: spawn_umount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /home
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /web
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /data
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /misc
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /-
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry +auto.master
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: reading master files auto.master
Jun 10 11:09:18 …
0
I have a scenario where I need a load balancer
When a new tcp connection is initiated from the client, the load balancer much assign a server, and always route all traffic from that that to the server it initially picked

When I netstat, I see and ipaddress and port for the client. (connection) so it makes sense to use this as the identifier for that client

Is there any software in exisitance to do this? Or do. I need to write my own?
0
PMI ACP® Project Management
LVL 13
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

I have executed the following command on a red hat Linux server
rpm -qa --last 

Open in new window

to try and determine when the latest updates/patches were applied to the server. I ran this under the context of a non root account but still got some output.

A couple of questions:
--will the output of this command be full/accurate if it was executed under the context of a none root account.
---Secondly, how often are updates issued for red hat Linux, and are they cumulative / is it similar to Microsoft patch releases, and do the updates also cover security vulnerabilities. The last updates listed in the output of command were 2017 which raises some concerns that security bugs have not been patched, and therefore the server is vulnerable.
----Finally, does red hat Linux have a support lifecycle where they only continue to issue patches for certain versions, and if so where can I see where the version currently operated sits in this support lifecycle, e.g. is it still eligible for updates for new bugs/vulnerabilities.
0
Hello,
I am trying to install and SSL certificate on a website after i've migrated it from Ubuntu to a CentOS server.
Everything is up and running but I can't get SSL working. Apache starts fine. My config test shows no errors. But when I try to connect to the server through ssl, in all browsers I get ERR_CONNECTION_REFUSED. I don't believe its an SSL issue but maybe a firewall. I don't know as im unfamiliar with CENTOS, Any ideas?
0
I have been running Ubuntu 14 with custom tcp tuning parameters for a couple years.  I applied, via puppet, all of the same tuning parameters, but on Ubuntu 18, my TCP Time Wait is very high.  What is the best method of finding the source of this high TCP Time Wait?  The process that is using the tcp connections is a java application.

Please let me know any other information I should provide.

Graph on the left is Ubuntu 18.04, right is Ubuntu 14.04

Thank you,

Reade
tcp-time-wait.png
0
I set up a Linux server (Ubuntu 18.10) for simple file sharing on our Windows network. The server is a Dell PowerEdge T30. It has an onboard NIC. I had given the server a static IP address and it was serving its purpose as desired for at least 2 weeks.

Last night I was testing a different (Windows) hard drive in the box, without the network cable plugged in. When I was done, I put the Ubuntu hard drive and network cable back in and rebooted the computer. When a message came up about software updates, I accepted the updates and rebooted again. When it came back up, it looked fine to me - though admittedly, I wasn't looking at it very closely.

This morning the server was not connected to the network. The network icon did not appear in the upper right corner of the screen and there was no option for the wired network in the Network control panel.  When I ran lshw -C network, it said *-network DISABLED. When I entered sudo ifconfig <adapter> up, I was able to get the network connected again and join the server to the Windows domain... until I rebooted the server again, and the connection was gone again.

I also set up a separate, old Dell Optiplex 760 with the same version of Ubuntu. I do not believe I set it up to automatically update, and hadn't touched it for about a week. It too had dropped its wired network connection. My boss and I were discussing whether we should just get another network card for the server until we noticed that the other computer's network …
0
Hi everyone,

I'm searching for a tool to manage and monitor hundreds of Unix servers.
90% are on Debian but from Debian 7 to Debian 9.

I tried Cockpit and I really liked it but it is limited to 20 servers.
Webmin is not good enough.
I tried to install a CentOS server with SpaceWalk on it but I can't take the control of Debian's servers.

So I would like to know if you have some advice for me.

Tank you all.
0
I am running centos 6 and have been having issues getting a kaseya agent installed.
0
Hi expert

What is the command to check the status of the IPSec in rehat linux 7 ?
0
I just installed Ubuntu server 18 and trying to get netplan to take my static IP but not having luck.

Can someone assist me with this?

This what I entered but it's not working.

netplan
0
I am using an older version of oxidized (rancid) to grab configs. It was build by someone else about three years ago. I'm trying to find where you configure the user ID and password to be used by the different network equipment. I don't see a reference to a user in /home/oxidized/.config/oxidized/config and not even a reference to device type PanOS which is what I'm aiming for.
0
Learn Ruby Fundamentals
LVL 13
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

I have some SLES 12.2 server where I need to monitor certain network traffic for diagnosing a problem that occurs every now an then. I'll try to record the traffic with tcpdump, and when that problem arises, I could dissect the correcponding network traffic with Wireshark.

I've set up a main script which contains
#!/bin/bash
tcpdump -iany -G $((30*60)) -n -w tcpdump.io.%F_%H%M%S.pcap -z ./tcpdump_postproc.sh net 192.168.1.0/24 or net 192.168.2.0/24 > tcpdump.statistics
./tcpdump_postproc.sh

Open in new window

and a helper script tcpdump_postproc.sh for some postprocessing:
#!/bin/bash
gzip *.pcap
find . -maxdepth 0 -mmin +$((12*60)) -name '*.pcap.gz' -delete

Open in new window


I'd expect that script to run indefinitely, creating capture files containing 30 minutes of data each, until I stop tcpdump with i.e. [CTRL-C] or kill. The postprocessing called after stopping (and whenever a new capture file is created) will zip the created capture files and limit the backlog of capture files to 12 hours.

So far, so good. Now to the problem:

tcpdump stops capturing data in the middle of the second file and exits (without error, as far as I could see).

What have I missed ?
0
Hi guys

We have an Linux instance in the cloud with Nginx installed on it. However, whenever the server restarts, the Nginx services don't. I'm not overly familiar with Linux commands. Can anyone help me how we can automate the Nginx services to start on restarts automatically?

Thanks for helping
Yash
0
While setting up a PXE boot server on a CentOS 7 machine, I encountered a strange problem with TFTP. I cannot retrieve any files from the TFTP server without encountering a timeout problem. The boot process comes so far that I correctly get an IP address and a file name from the DHCP server. However, when the boot files are to be retrieved from the TFTP server, a "TFTP open timeout" message comes. If I manually make a TFTP connection to the PXE server from a local computer, I immediately get access to the server. But if I try with a "get pxelinux.0" command, I get another timeout message.
My firewall is set up correctly and it also makes no difference if I completely turn off the firewall. SeLinux is also disabled.
If I make a tcpdump on port 69 I get the following message:
12:34:33.477401 IP 172.16.1.202.ah-esp-encap > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:34:35.481131 IP 172.16.1.202.acp-port > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:34:39.490793 IP 172.16.1.202.msync > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:34:45.477712 IP 172.16.1.202.gxs-data-port > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:34:53.441801 IP 172.16.1.202.vrtl-vmf-sa > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:35:03.384065 IP 172.16.1.202.newlixengine > tools.dmz.tuxme.dk.tftp:  32 RRQ "pxelinux.0" octet blksize 1456
12:35:39.414843 IP 172.16.1.202.newlixconfig > 

Open in new window

0
I am trying to learn iptables and virtualbox.

I have 3 Centos7 VMs configured as follows with iptables configured on VM2. All interfaces are configured as "host only adapter" in virtual box as /24 networks:


VM1 - - - - - - - - -  - - VM2- - - - - - - - - - -VM3
192.168.1.1             192.168.1.2
                                  172.16.0.2             172.16.0.1
                                                                  10.0.0.1

iptables is configured on VM2 as follows:

LINE 1: -A INPUT -s 192.168.1.1 -d 192.168.1.2 -j LOG
LINE 2: -A FORWARD -s 192.168.1.1 -d 172.16.0.2 -j LOG
LINE 3: -A FORWARD -s 192.168.1.1 -d 172.16.0.1 -j LOG
LINE 4: -A FORWARD -s 192.168.1.1 -d 10.0.0.1 -j LOG

When I send data using scapy -- send(IP(src="n.n.n.n", dst="y.y.y.y")/TCP()) -- the traffic flow described on LINES 1, 2 and 4 is logged. But the flow from LINE 3 is not.

I have tried LINE 3 using INPUT and OUTPUT rules without success.

What am I missing?

Thanks.
Steve
0
zgrep -C5 'xyz' abc.gz

i have above grep
in the results how to search on say "error code=1111 description=null pointer"


Above results too large i am not able to copy paste to notepad++ (which i usually do makes easy to to my eyes) to search on like error code=1111 description=null pointer"

zgrep -C5 'xyz' abc.gz >>/home/TestUser/testuser.txt

can we do tail or head on above?
please advise
0
Hi Experts,

     I want to configure elasticsearch to a new IP address.  Currently, it is on a dev machine.  But I want to configure to a new IP address.

currently, in my elasticsearch.yml the current settings are

network.host:0.0.0.0

path.data : /var/lib/elasticsearch

path.logs: /var/logs/

inside /var/lib/  elasticsearch is link file to links to /mnt/elasticsearch

I want to install elasticsearch to new machine.  machine ipaddress is eg., 5*.25*.22*.1*,  

My questions are,

Do I have to install elastic search on this new IP address,

or can I set this new IP address as network.host path in the existing dev machine?

or do I have backup and restore to the new ipaddress?

Please suggest how to configure?

I had tried changing the network host to the new IP address, and copied elasticsearch folder to the new machine and set the path to path.data and I had set path.logs to new machine folder paths and restarted elastic search from the existing dev machine.

elastic search failed to start.

Please suggest how to configure the elastic search on this new machine.

With many thanks,

Bharath AK
0

Linux Networking

18K

Solutions

15K

Contributors

The variety of Linux distributions creates myriad issues relating to configuration and operations when computers are networked, not the least of which is the use of various network management applications, some of which are included with specific distributions, while others are standalone applications.

Top Experts In
Linux Networking
<
Monthly
>