Linux Networking

17K

Solutions

14K

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,

I am fed up with putty with basic options.

Any better tools or IDEs to check logs or to grep unix/linux boxes.

Where  i can download secure ftp and how much is fees?
any advanced putty IDE there
any good free IDE accepted by industry.

please advise
0
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Dear Experts,

How to copy or transfer a file from one Linux server to multiple Linux server in same network from a single cmd or script ? It should be a single line cmd for copy my file to multipal servers, don't want to use separate line for every server.

for example:
scp report_zonal 192.168.7.111 192.168.7.112 192.168.7.113 192.168.7.114:/home/Zonal/Desktop

i dont know it is possible or any other way to make it possible, please suggest

Currently i am using this method, it is working also, but i don't want to use this process.

[root@200 ftp]# cat FileTransfer.sh
#!/bin/bash
# transfer file to server
cd /root/
#DC Zonal
scp report_zonal 192.168.7.111:/home/Zonal/Desktop
scp report_zonal 192.168.7.112:/home/Zonal/Desktop
scp report_zonal 192.168.7.113:/home/Zonal/Desktop
scp report_zonal 192.168.7.114:/home/Zonal/Desktop
0
Hi All!!

Is it possible to isolate a small linux box computer from the rest of my home network but still have internet capabilities. My home network connects to a single router which has various devices connected to it, such as Windows machines and other devices (not many but some).

The ideas is, if the linux PC or other devices are compromised, it will not affect the others. I would also like to to port-forward the linux box for remote use. So by isolating it from the network i can minimise the risks if any.

I understand that the likelihood of Linux devices infecting Windows (or vice versa) is rare but I'd still like to achieve this.

After doing research, i have come up with the below...

  • Installing/Configuring A/V on the Linux Terminal
  • Using IPtables to restrict other devices accessing. - Complete newbie to this but would appreciate some guidance.
  • Different IP Subnets.

I would very much appreciate it if someone would be able to assist me in understanding and designing a solution.

Thank you!!
0
Hi expert

How to upload SSL to openLdap server?
0
hi trying to install jboss on AWS ubunutu and access console from external/Internet

Followed so far
1. Installed Jboss on ubuntu followed these page (https://www.digitalocean.com/community/tutorials/how-to-install-jboss-on-ubuntu-12-10-64bit)
2. Followed this step to allow connections from external (http://technicles.com/how-to-make-your-jboss-or-wildfly-as-remotely-accessible/)
3. started with -b
./standalone.sh -b 0.0.0.0
./standalone.sh -b <AWS Elastic IP>

when I tried to connect I get below error on the browser
This site can’t be reached.<AWS Elastic IP> refused to connect.


after I enabled TRACE. I get more info but couldn't figure out what is wrong. Please help
Pls check the attached trace.log file

thanks in advance
trace.log
0
Dear Experts,

We have automout enabled for our /home directory, Whenever a user login to the servers automout triggers NFS mount to use to mount  home directory[/auto/home/<username>] in the servers.  The NFS servers hosted on Netapp storage device.

Below is the logs from messages file:
automount[25639]: mount(nfs): nfs: mount failure 10.x.x.x:/vol/m1_ldap_home/localhome/sivakumar on /auto/home/sivakumar
Jun  8 09:20:30 xxxxxxxxx automount[847]: attempting to mount entry /auto/home/sivakumar
Jun  8 09:20:51 xxxxxxxxx automount[25644]: >> mount: RPC: Timed out.

My Observation:

The NFS client servers which NOT in the same network where NFS Server is , having above problems.

I need to know , what angle i need to troubleshoot this issue, how to resolve and what is solution?

Thanks in advance.

Sk..
0
redhat linux 7.3 i did disable ipv6 but still its shows.

tcp6       0      0 :::80                   :::*                    LISTEN      638/httpd
tcp6       0      0 :::22                   :::*                    LISTEN      647/sshd
tcp6       0      0 :::443                  :::*                    LISTEN      638/httpd
0
How can I configure BIND DNS to work as a slave for Windows DNS for different environments.  I already built and configured for DNS Bind to work as a slave in a LAB environment however Im trying to phase this into other environments at a slow pace. I created a template and using puppet to configure the environments.  I put an if statement in there for LAB, would it be a else or elsif for another environment or am I going about the wrong way?  Any help would be appreciated.  Thanks!

Template code
#Global Options
options {
  directory "/var/named";
  listen-on port 53 { localhost; <%= @ipaddress_eth0 %>; };
  allow-query { any; };
  dump-file   "/var/named/data/cache_dump.db";
  statistics-file "/var/named/data/named_stats.txt";
  memstatistics-file "/var/named/data/named_mem_stats.txt";
  recursion yes;
  empty-zones-enable no;
  check-names master warn;     #Must be WARN only for AD
  dnssec-enable no;
  dnssec-validation no;
  dnssec-lookaside auto;

  ## Path to ISC DLV key ##
  bindkeys-file "/etc/named.key";

  pid-file "/run/named/named.pid";
  session-keyfile "/run/named/ses.key";
};

#Logging Section  -- What, how, and where logging takes place can be extensively configured in BIND
logging {
  channel default_file {
      file "/var/log/named/default.log" versions 3 size 5m;
      severity dynamic;
      print-time yes;
  };
  channel general_file {
      file "/var/log/named/general.log" versions 3 size 5m;
      severity dynamic;
      print-time yes;
  };

Open in new window

0
in Unix

what is the meaning of below command



zgrep 'RPT|O|GetProducts' xyz.gz meaning
why we need RPT|o|
in the beginning what is the meaining of pipe here?
please advise
0
Imagine the following scenario:

A NAS box, providing a samba share, with several versions of a fíle collection in dated directories (name i.e. "2017.05.24").

On the NAS should be some links into subdirectories of the latest version, so the copy script should create symbolic links on the share to the latest version of that file collection.

When I try
ln -s <samba_share/link_name> <samba_share/dated_dir_subdir/>

Open in new window

I get an error that this is not possible. Any hint ?
0
Free Tool: Subnet Calculator
LVL 9
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Can anyone recommend a good Linux tutorial, learning from the ground up?
0
Hi experts
I have mikrotik router board v5
Using hotspot
I need antivirus rule for my system
0
Hi,

what are the best practices and features, options while using grep.

i am using these days to search in log files, files, directories, content etc

When should i give single quote '  '
like
zgrep 'xyz' aaa.gz


When should i give double quote " "
like
zgrep "xyz" aaa.gz


how to use tail and head etc along with grep to effectively monitor last or first 100 lines etc
please advise
0
Hi,

I keep getting below error when i wrote hello.sh shell script file and try to open it to.



Swap file ".hello.sh.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:



why it created .swp file autoatically?
why it asks above question. How to tell unix not to ask that question.
please advise
0
Hi,

https://bash.cyberciti.biz/guide/Hello,_World!_Tutorial

I created hello.sh script using vi hello.sh
then typed below

echo "Hello, World!"
echo "Knowledge is power."

do i need to tyope below line as well at top?

#!/bin/bash
what above line means?

when i try to execute gets errror as

$ ./hello.sh
-bash: ./hello.sh: Permission denied



please advise
0
Hi,

I am trying below program

http://www.programmingunit.com/2013/04/19/shell-script-to-check-leap-year/

how to save and execute above shell script and see output and send output to different files say test123.txt. please advise

i tried using vi editor as sample.sh and pasted content.

did esc to escape from isnert mode then shift zz to comeback to regular screen from vi mode

]$ vi sample.sh

[1]+  Stopped                 vim sample.sh

Not sure what it mean by stopped as above i saw message

when i ran getting error
]$ ./sample.sh
-bash: ./sample.sh: No such file or directory

when i do ls -ltr i do not see sample.sh though
0
Hi,
what are differences between
user defined, environmental. local, global variables

when to use which one. what are advanatages, disadvantages of using each with practical examples.
please advise
0
Hi,

I like to write a unix shell script to check calendar year, date, current working directory.

how to write and shave .sh file(Say test.sh) and how to execute to see the output.

Any detailed link explaining these steps with screenshots. please advise
0
What are differences between
touch cat vi differences

which one is better to use to create a file. When to use which one. please advise
0
WordPress Tutorial 1: Installation & Setup
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Hi,

I like to delete matched pattern in a file using vi editor and sed command

i tried as below not working

$ sed 'hello' aaaa.txt :% aaaa.sh


please advise
0
I am trying to build nodejs from source code.

WARNING: C++ compiler too old, need g++ 4.8 or clang++ 3.4 (CXX=g++)
creating ./icu_config.gypi
* Using ICU in deps/icu-small
Using version-specific floating patch tools/icu/patches/58/source/i18n/digitlst.cpp
creating ./icu_config.gypi
{ 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': []},
  'variables': { 'asan': 0,
                 'coverage': 'false',
                 'debug_devtools': 'node',
                 'force_dynamic_crt': 0,
                 'gas_version': '2.20',
                 'host_arch': 'x64',
                 'icu_data_file': 'icudt58l.dat',
                 'icu_data_in': '../../deps/icu-small/source/data/in/icudt58l.dat',
                 'icu_endianness': 'l',
                 'icu_gyp_path': 'tools/icu/icu-generic.gyp',
                 'icu_locales': 'en,root',
                 'icu_path': 'deps/icu-small',
                 'icu_small': 'true',
                 'icu_ver_major': '58',
                 'node_byteorder': 'little',
                 'node_enable_d8': 'false',
                 'node_enable_v8_vtunejit': 'false',
                 'node_install_npm': 'true',
                 'node_module_version': 48,
                 'node_no_browser_globals': 'false',
                 'node_prefix': '/usr/local',
   …
0
I posted a question on this problem: https://www.experts-exchange.com/questions/29019573/Cannot-get-DNS-to-use-2-hosts-for-the-same-IP.html, thought it was solved, and closed it. I did so too soon, so now I'm posting again.

To summarize:

I am running Slackware64 14.2, Samba 4.4.13 and BIND 9.10.4-P6 on host 192.168.0.2. This host is the Active-Directory/Domain controller for our office Windows domain.

Lately, I added a VirtualBox XP guest virtual machine to the domain running SQL Server 2005 to service a legacy application.  The virtual machine implements a virtual "router" which dhcp assigns an IP to the XP: 10.0.2.15 (host name: traverse).  In the VM I have configured port-forwarding to forward requests made to the Linux VM host (192.168.0.2) on port 1433 to the VM port 1433.

From domain workstations you cannot access the SQL Server via 10.0.2.15:1433. You can, however, access the SQL Server via 192.168.0.2:1433.

No problem, I thought. I created an 'A' record in the zone file as:

TRAVERSE   A  192.168.0.2

so now there are two hostnames that resolve to 192.168.0.2. That worked ... for a while. Initially, the host command gave:
$ host traverse
TRAVERSE.hprs.local has address 192.168.0.2

Open in new window

Domain workstations were able to access the SQL Server on the XP virtual machine. However, after some period of time that changed:
$ host traverse
TRAVERSE.hprs.local has address 10.0.2.15

Open in new window

Something is changing the DNS entry for this host from 192.168.0.2 to 10.0.2.15. What? In the logfile I have the following, which might provide a clue:

Open in new window

0
I am running Slackware64 14.2 and BIND 9.10.4-P6 in an office LAN. This morning a bit after 8:00AM one user called and said he'd lost Internet access and access to the local shared drive. About 2 hours later another user called, same thing. By shortly after noon 3 more users were having the same problem, but another 3 were accessing Internet and LAN resources OK. I rebooted the DNS server and now nobody has any access at all.

I suspect DNS. I did make a change a couple of days ago to add an 'A' record, but I can't see how that would have done this. I will experiment with restoring the zone file from a couple of days ago.

Here is the interesting wrinkle. Upon restart of named I get the following logged message:
May  1 12:49:08 mail named[1666]: managed-keys-zone: loaded serial 0
May  1 12:49:08 mail named[1666]: zone 127.in-addr.arpa/IN: loaded serial 1
May  1 12:49:08 mail named[1666]: zone 0.168.192.in-addr.arpa/IN: loaded serial 379
May  1 12:49:08 mail named[1666]: zone hprs.local/IN: loaded serial 2014137944
May  1 12:49:09 mail named[1666]: zone localhost/IN: loaded serial 2
May  1 12:49:09 mail named[1666]: all zones loaded

Open in new window

The zone for hprs.local has serial # 2014137944, yet the zone file I modified: /var/lib/samba/private/dns/hprs.local.zone has serial # 2014134046. I made 2 separate changes to this file and changed the serial number each time. However, the named log output indicates it is getting a zone file with serial 2014137944. How can that be? I suspect this is part of the problem.

From the DNS server, I can get the IP of any host, but cannot ping:

Open in new window

0
I am unable to ping a Linux Server on the same network from a windows server.

I can ping other Linux servers but not this particular one, and I cannot see anything different.

Please can someone advise on what to look at?
0
I had a shared samba folder mounted to my Ubuntu system using cifs.
Below is the script I had made that would mount the share:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/bash

mount -t cifs -o username=JOHN,password=******* //192.168.1.xxx/SharedWorkspace /home/centekg2/sharedworkspace

mount -t cifs -o username=JOHN,password=******* //192.168.1.xxx/scanner /home/centekg2/Scanner
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Everything was working fine until i did a system update. Now I do not have write permission to the share like I did previously.
I cannot make directories or files anymore

Do you guys know what can be causing this issue. Any advice would be great. Thank you so much!
0

Linux Networking

17K

Solutions

14K

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
>