Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x

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 need to search on say "xyz" on 123.gz file.

i need t see complete word xyz alone not like word containing "abxyzdef" not like word beginning with xyzdefff not even ending aaaaxyz

please advise

zgrep 'xyz' 123.gz not working
0
Concerto's Cloud Advisory Services
LVL 5
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

i install ssh in ubuntu. i start services and it's  runnig. idisabled firewall. i add keygen in authorized_keys.
ssh <ip_host> says  Permission denied (publickey).
0
Hello Experts,

We have an application which is login on CentOS 6.8 64 bit (GUI Interface) & after login generate tcp port 50000 for make connection with user.
Behind that port there are many connection connected with different-different IP (192.168.207.11, 207.12, 207.13) & user name (user1, user2, user3):

Example Output:-
[root@CC ~]# lsof -i :50000
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
TCPServer 3647 rajat  245u  IPv4 156532      0t0  TCP 192.168.207.125:50000->192.168.207.15:49277 (ESTABLISHED)
TCPServer 3647 rajat  261u  IPv4  23354      0t0  TCP *:50000 (LISTEN)
TCPServer 3647 rajat  387u  IPv4  24955      0t0  TCP 192.168.207.125:50000->192.168.207.13:49271 (ESTABLISHED)

From this cmd i only check which IP is connected behind port 50000, but i want to check user name also. Please suggest.
0
under Location Profiles i see

Site Location Profiles and Shared Location Profiles. what are difference between them? when to use which one?
0
I have rsync some files to a remote server.  Some of those files have been updated on the remote server and others of those files have been updated on the original server.  

I want to update the remote server so that it includes any changes to updated files on the original server but I don't want to overwrite anything on the remote server that has more recently been changed on the remote server than the original server.

Which rsync option should I use for this?
0
I normally force most of our clients to use a white list of sites which I enforce via a custom hosts file.  nsswitch is configured like this

hosts:  files mdns4_minimal [NOTFOUND=RETURN]

Open in new window


It's been a long time since I turned dns back on - Im trying to confirm if this should do it

hosts:  files mdns4_minimal [NOTFOUND=RETURN] dns

Open in new window


but I am not sure what
mdns4_minimal [NOTFOUND=RETURN]

Open in new window

does exactly
1
Hi experts
i need the command line for ubunt to copy file from my ubuntu desktop to windows pc
thanks
0
I was asked to set up an aris game server. I am not sure where to start.  Here is the git hub page I was pointed to. I assume this is supposed to run on linux?  I know how to set up a linux server, create users, install apps, and a few other things.  Can anyone give me some direction with how I can get this up and running?

Here is the git hub page I was pointed to.
https://github.com/ARISGames/server
0
Hello I am sort of new and need some assistance please. I have setup intervlan routing which works and able to ping and connect to my subinterfaces but I cannot access the internet from any of those networks. My setup is the following. I have 2 routers as the office is using a SOHO linksys router where I have configured static routing  to point toward a 2800 series gigabit router which has 4 sub interfaces on one of the ports. The linksys router is connected to the isp. The cisco 2800 is connected to the linksys and internally.

How do I get the cisco 2800 to point to the linksys for internet access. I am using static routing (which works fine). I have tried adding the dns address of the isp dns on the 2800 but that seems to not work. I am also open to setup a linux DNS server internally. Any links I can use.

LINKSYS ROUTER 172.16.32.1

Cisco 2800 router
FE1 172.16.32.2 255.255.255.224

interface FastEthernet0.32
 encapsulation dot1Q 32
 ip address 172.16.23.33 255.255.255.224
 no snmp trap link-status
!
interface FastEthernet0.96
 encapsulation dot1Q 96
 ip address 172.16.23.97 255.255.255.224
 no snmp trap link-status
!
interface FastEthernet0.128
 encapsulation dot1Q 128
 ip address 172.16.23.129 255.255.255.224
 no snmp trap link-status
!
interface FastEthernet0.160
 encapsulation dot1Q 160
 ip address 172.16.23.161 255.255.255.224
 no snmp trap link-status
!
0
Dear all

                   I,m getting below error when running "IPsec setup start" , and bottom is the ipsec.conf , any help would be appreciated !


====================================================
[root@LinuxHomeServer ipsec.d]# ipsec setup start
cannot load config '/etc/ipsec.conf': /etc/ipsec.conf:48: syntax error, unexpected KEYWORD, expecting $end [virtual_private]
cannot load config '/etc/ipsec.conf': /etc/ipsec.conf:48: syntax error, unexpected KEYWORD, expecting $end [virtual_private]
cannot load config '/etc/ipsec.conf': /etc/ipsec.conf:48: syntax error, unexpected KEYWORD, expecting $end [virtual_private]
unknown stack
Redirecting to: systemctl start ipsec.service
Job for ipsec.service failed because the control process exited with error code. See "systemctl status ipsec.service" and "journalctl -xe" for details.
============================================================


vim /etc/ipsec.conf

virtual_private=%v4:192.168.0.0/16

conn=L2TP-PSK-NAT
rightsubnet=vhost:%priv
also=L2TP-PSK-noNAT
conn L2TP-PSK-noNAT
authby=secret
pfs=no
auto=add
keyingtries=3
dpddelay=30
dpdtimeout=120
dpdaction=clear
rekey=no
ikelifetime=8h
keylife=1h
type=transport
left=XX.XX.XX.XX
leftprotoport=17/1701
right=%any
rightprotoport=17/%any
0
Technology Partners: We Want Your Opinion!
Technology Partners: 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!

Hi friends,

I'm getting very worried because a few days ago I've been posting the same doubt and editing the text to make it clearer, but I have no response from the Experts Exchange or any other Expert (there's a lot of good ones here)... I've been a Experts Exchange subscriber for over 5 years now... and never before have I been without the help of the experts ... I do not understand why it was left in oblivion.

Well... lets get to the point...

Please, I need to connect a strongswan VPN (my side) with another VPN software (other side) but the admin from "the other side doesn't provides enough info... so I'm trying to figure out and troubleshoot this with trial and error... already for many days and a lot of migraines...

They (the other side) provide me a PSK (OK)... already configured in ipsec.secrets and they also gave me the following instructions:  

1st Phase (IKE V2)                                          
DH 2 = 1024 bits                                           
SHA-256                                          
AES-256                                          
Lifetime = 1440m                                           
                                          
2nd Phase (ESP)                                          
PFS - DH 2 - 1024 bits                                          
SHA-256                                          
AES-256                                          
Lifetime = 3600s

My question is (please): how do I configure this specific connection? especially the parameters ike and esp; anything else is needed in the configuration example below?

conn myside-otherside
      keyingtries=%forever
        keyexchange=ikev2
        compress=no
        authby=secret
        ikelifetime=1440m
        keylife=60m
        rekeymargin=3m
        ike=???
        …
0
Dear Experts

is it a good idea to setup own cloud on ubuntu server and enable work space directory for all users does it support mac users, windows users and can we use this for document storing and collaboration, please suggest, thanks in advance.
0
How to check the time stamp of mv command

i tried as below


bash-4.4$ mkdir new2                                                                                                                              
bash-4.4$ ls ltr                                                                                                                                  
ls: cannot access 'ltr': No such file or directory                                                                                                
bash-4.4$ ls -ltr                                                                                                                                  
total 8                                                                                                                                            
-rw-r--r-- 1 14392 14392    0 Nov 22 17:03 e.txt                                                                                                  
drwxr-xr-x 3 14392 14392 4096 Nov 22 18:23 new                                                                                                    
drwxr-xr-x 2 14392 14392 4096 Nov 22 18:25 new2                                                                                                    
bash-4.4$ mv -u /new/* new2                                                                                                                        
mv: cannot stat '/new/*': No such file or directory                                         …
0
hi,

as given below
http://www.thegeekstuff.com/2010/12/mv-command-examples/
$ ls
file1    file2

$ mv --suffix=.bak file1 file2

$ ls
file2    file2.bak


i tried as below
bash-4.4$ cd root                                                                                                                                  
bash-4.4$ pwd                                                                                                                                      
/home/cg/root                                                                                                                                      
bash-4.4$ ls -ltr                                                                                                                                  
total 4                                                                                                                                            
drwxr-xr-x 3 14392 14392 4096 Nov 22 16:58 new                                                                                                    
bash-4.4$ touch d.txt                                                                                                                              
bash-4.4$ mv --suffix=.bak d.txt e.txt                                                                                                            
bash-4.4$ ls -ltr                                                                                                        …
0
hi,

I am trying as below
mv * to move multiple files but not working
http://www.thegeekstuff.com/2010/12/mv-command-examples/
$ cd chap1

$ ls -F
ex1.c    ex2.c    ex3.c    example/   exercise/  

$ mv * chap2/






bash-4.4$ ls -ltr                                                                                                                                  
total 12                                                                                                                                          
-rw-r--r-- 1 14392 14392  978 Nov 22 16:46 README.txt                                                                                              
-rw-r--r-- 1 14392 14392    7 Nov 22 16:47 456.txt                                                                                                
drwxr-xr-x 2 14392 14392 4096 Nov 22 16:49 dir3                                                                                                    
-rw-r--r-- 1 14392 14392    0 Nov 22 16:56 c.txt                                                                                                  
bash-4.4$ mv * new/                                                                                                                                
mv: target 'new/' is not a directory                                                                                                              
bash-4.4$ mkdir new                                                     …
0
bash-4.4$ mv -i dir2 dir3                                                                                                                          
bash-4.4$ ls -ltr                                                                                                                                  
total 12                                                                                                                                          
-rw-r--r-- 1 14392 14392  978 Nov 22 16:46 README.txt                                                                                              
-rw-r--r-- 1 14392 14392    7 Nov 22 16:47 456.txt                                                                                                
drwxr-xr-x 2 14392 14392 4096 Nov 22 16:49 dir3                                                                                                    


i tried as above but i did not get warning  like below

mv: overwrite `dir2'?


i tested with files also but no warning coming

bash-4.4$ touch a.txt                                                                                                                              
bash-4.4$ mv a.txt b.txt                                                                                                                          
bash-4.4$ ls -ltr                                                                                                                                  
total 12           …
0
how to search both zip  files and regular files same time

zgrep  "ram" *

grep  "ram" *

i like to combine above two

just use pipe?how to get result count as well on both files or on each file separately

how to create zip file here to test it?
https://www.tutorialspoint.com/unix_terminal_online.php
please advise
0
i need two passive finger printing programs.

i've tried p0f, but the results i am getting are not consistent --maybe just wrong ...

i load up p0f, and use the line p0f -f p0f.fp log1.log

then i either use netcat to try and open a connection or a browser to open a connection, but, i get all sorts of results, but not the ip of the target i'm shooting for

i need to identify the target(yahoo, google, microsoft, whatever) operating system through a passive program

so, i dig the domain name or ping the site and retreive an ip address, and then wait for it to populate in p0f, but
i never actually see a packet come back from that site identifying an OS

this is for an ethical hacking class

thanks

-dave.j
0
I am confused about when and why to run many contianers in a single task? or should be one task and one container ?

what is the logic for this?
0
What does it mean to be "Always On"?
LVL 5
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

hello experts
for i am a new for Linux, while i am trying to start up IPSEC service i got below error and failed, could you guide me how to identify the problem and fixed?
thank you

[root@izj6cj3u8v3v07l4w3162fz ~]# systemctl start ipsce
Failed to start ipsce.service: Unit not found.
[root@izj6cj3u8v3v07l4w3162fz ~]# systemctl start ipsec
Job for ipsec.service failed because the control process exited with error code. See "systemctl status ipsec.service" and "journalctl -xe" for details.
[root@izj6cj3u8v3v07l4w3162fz ~]# systemctl status ipsec.service
鈼?ipsec.service - Internet Key Exchange (IKE) Protocol Daemon for IPsec
   Loaded: loaded (/usr/lib/systemd/system/ipsec.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Fri 2017-11-17 14:42:55 CST; 7s ago
     Docs: man:ipsec(8)
           man:pluto(8)
           man:ipsec.conf(5)
  Process: 3074 ExecStartPre=/usr/libexec/ipsec/addconn --config /etc/ipsec.conf --checkconfig (code=exited, status=3)

Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: ipsec.service: control process exited, code=exited status=3
Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: Failed to start Internet Key Exchange (IKE) Protocol Daemon for IPsec.
Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: Unit ipsec.service entered failed state.
Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: ipsec.service failed.
Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: ipsec.service holdoff …
0
I have not been able to verify that logs are being received on the centos 7 server using rsyslog

firewall has udp 514 open and listening same set on the cisco asa

cannot see why it is not working, I do sh logging and it shows how many TX are being sent via the trigger but cannot find on rsyslog server.
0
hi,
i wrote simple perl script and trying to run geting below error from


https://www.tutorialspoint.com/unix_terminal_online.php

sh-4.4$ vi hi.pl                                                                                                                                                                            
sh-4.4$ pwd                                                                                                                                                                                  
/home/cg/root                                                                                                                                                                                
sh-4.4$ /home/cg/root/hi.pl                                                                                                                                                                  
sh: /home/cg/root/hi.pl: Permission denied                                                                                                                                                  

i just wrote in hi.pl as
print "hii";


in command prompt of windows it ran fine once i install activevperl
https://www.activestate.com/activeperl/downloads

C:\Users\ss\perl\code>perl hello.pl
hii

please advise
0
I have a customer that I inherited running Red Hat Linux ES 3 that wants to send email from the Linux side.  
I need to be able to send email using port 587.

cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon)

The Windows support person says smtp must use port 587.

SMTP: smtp.emailarray.com  Port: 587
Login: info@computerohio.com

/etc/services
smtp            25/tcp          mail
smtp            25/udp          mail
submission      587/tcp         msa             # mail message submission
submission      587/udp         msa             # mail message submission

Since 587 is used by submission can smtp also be changed to 587 in the /etc/services file?

netstat -tanp | grep send | grep LISTEN
tcp        0      0 127.0.0.1:25            0.0.0.0:*    LISTEN      483/sendmail: acce

The Windows support person also says the following:
The Windows server is running DNS, so you may want to change the DNS servers to:
10.10.10.176
8.8.8.8
It should resolve "smtp.emailarray.com" to 69.28.212.198.

cat /etc/resolv.conf
nameserver 10.10.10.1
nameserver 68.10.16.25
nameserver 10.10.10.176
nameserver 8.8.8.8
search appemc


cat /etc/sysconfig/networking/devices
# Intel Corp.|82540EM Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=none
BROADCAST=10.10.10.255
HWADDR=00:c0:9f:27:7b:8f
IPADDR=10.10.10.100
NETMASK=255.255.255.0
NETWORK=10.10.10.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
GATEWAY=10.10.10.1


cat …
0
hi,
mputty session name how to rename says from server1 to server2

Please advise
0
what is difference between control D and exit commands.

please advise
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
>