Linux Networking

17K

Solutions

3

Articles & Videos

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

I have a Asus RT-N18U router. (but can buy another one), with DD-WRT firmware DD-WRT v3.0-r32170 std (06/01/17)
I want:
Hotspot for Restaurants that:
-People connect (no password) to WIFI
-they get a webpage (can be on router or in internet)
-webpage ask for emailadress
-once introduced emailadress and send it (to a server in internet with its MAC address) they get granted lets say 2 hours of internet
-after 2 hours they have to come back to the login page again (or better they get blocked for 10 hours with error webpage and after to login page again)
-no other service (not free and not payed) should be used

-the router mentioned offers dd-wrt with onboard radiusserver (I tried it and works), chillispot or nocatsplash (both I didn't get to work)
The router should be configured (WAN) as DHCP automatic conection and he should use his own network with his own DHCP server (so it is easy to connect him to an existing network)

I need somebody who configures the router and tell me how the configuration works. (where are modifyable files)
0
Industry Leaders: We Want Your Opinion!
Industry Leaders: 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 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
Good Morning!

What does the following two options actually do for DHCPd and does it work with failover?

allow booting;
allow bootp;


Im trying to configure DHCPd Failover and from what Im reading Im not quite sure if DHCP scopes that need PXE boot will work with DHCPd Failover. I believe the two options listed above would be needed but I dont know.  If so, should they be added in the primary and secondary dhcpd.conf files or the dhcpd.master?

Also the two options below -- are they also needed and should they be added in the primary and secondary dhcpd.conf files or the dhcpd.master too?

next-server x.x.x.x;
filename "xxx";

Thanks in advance!

Primary dhcpd.conf file
#authoritative;
ddns-update-style none;
ignore client-updates;
one-lease-per-client true;
omapi-port 7911;

#Failover peer section
failover peer "dhcp-partner" {
  primary;
  address server1.paychex.com;
  port 647;
  peer address server2.paychex.com;
  peer port 647;
  max-response-delay 60;
  max-unacked-updates 10;
  mclt 3600;
  split 153;
  load balance max seconds 3;
}
include "/etc/dhcp/dhcpd.master";

Open in new window


Secondary dhcpd.conf file
#authoritative;
ddns-update-style none;
ignore client-updates;
one-lease-per-client true;
omapi-port 7911;

#Failover peer section
failover peer "dhcp-partner" {
  secondary;
  address server2.paychex.com;
  port 647;
  peer address server1.paychex.com;
  peer port 647;
  max-response-delay 60;
  max-unacked-updates 10;
  load balance max seconds 3;
}
include "/etc/dhcp/dhcpd.master";

Open in new window


dhcpd.master file
option domain-name "example.com";
allow booting;
allow bootp;
next-server x.x.x.x;
filename "xxx";
option option-242 code 242 = string;

#dhcpd wants to listen on its own networks
subnet 17.8.4.0 netmask 255.255.252.0 {
  ignore unknown-clients;
}

#dhcpd wants to listen on its own network
subnet 19.4.8.0 netmask 255.255.252.0 {
  ignore unknown-clients;
}

#Scope [12.4.4.0] TEST PXE Boot
subnet 12.4.4.0 netmask 255.255.252.0 {
  option subnet-mask 255.255.252.0;
  option routers 12.4.4.1;
  option domain-name-servers 12.2.2.198;
  pool {
    failover peer "dhcp-partner";
    default-lease-time 300;
    max-lease-time 360;
    range 12.4.5.0 12.4.5.255;
  }
}

Open in new window

0
We had our master DNS server go down last night for our domain (RAID failure). Technically our secondary DNS server should have picked up the slack, however for one domain where our DNS server holds the records for an externally hosted mail server of ours, it was unresponsive until we made NS2 our master server.

The biggest issue is why a secondary server would not show as responsible until becoming a master whereas other services on our network were fine...

Any ideas why this would be the case?
CentOS 7 - BIND.
0
I have one 12U1 SLES machine in which i want to open an port no 31015 for SAP HANA but unable to.

Netstat -tulpn also not showing LISTEN to this port .

I have also tried it with Yast2 firewall advance option but dont same problem

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2475/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2169/master
tcp        0      0 0.0.0.0:51013           0.0.0.0:*               LISTEN      2341/sapstartsrv
tcp        0      0 0.0.0.0:51014           0.0.0.0:*               LISTEN      2341/sapstartsrv
tcp        0      0 0.0.0.0:1128            0.0.0.0:*               LISTEN      2295/sapstartsrv
tcp        0      0 0.0.0.0:1129            0.0.0.0:*               LISTEN      2295/sapstartsrv
tcp        0      0 :::22                   :::*                    LISTEN      2475/sshd
tcp        0      0 ::1:25                  :::*                    LISTEN      2169/master
udp     5376      0 0.0.0.0:68              0.0.0.0:*                           1308/wickedd-dhcp4


telnet IP 31015
gives keep trying then unable to reach

telnet working for other ports like ssh and 1128 etc.

please help
0
[Webinar] Learn How to Simplify Your Server Management
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't working efficiently to help you get your work done. You need streamlined processes to help you tackle your to-do list, implement new protocols, and deploy code.

Check out this webinar to learn:
  • How the Plesk Onyx platform simplifies administration and management of virtual hosts for IT admins
  • Ways to set up, manage, and maintain websites, email accounts, and other items through a web-based interface
  • The importance of an extremely secure environment, both in the core and through third-party providers
  • How to deploy code more effectively and frequently with a fully-integrated system
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
I need to connect a Virtual Machine hosted somewhere running CentOS 6 to a client which is allowing connection through VPN only. However I have almost no knowledge about VPNs. The client has given me following info for connection:

VPN Remote Endpoint: <IP Address given by the client>
VPN Hardware: NGX R75.45 (SPLAT)

IKE (Phase 1)
==================
Authentication Method: Pre shared key (TBA)
DIffie-Hellman group: DH-2
Encryption Algorithm: AES-128
Hashing Algorithm: SHA-1
Renegotiate IKE: 14400 seconds

IPSEC (phase 2)
======================
Encryption Algorithm: AES-128
Hashing Algorithm: SHA-1
Renegotiate IKE: 3600 seconds
PFS Enabled: Yes

I am not sure where to put all these info in CentOS to make it to connect to the client's network.

I will be much thankful for any help.
0
Free Tool: Subnet Calculator
LVL 8
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.

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
when i start the tomcat service i get this error.

server[3387]: May 29, 2017 2:33:36 PM org.apache.coyote.ajp.AjpMessage processHeader
server[3387]: SEVERE: Invalid message received with signature 18245
0
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:sunrpc          0.0.0.0:*               LISTEN      1/systemd
tcp        0      0 0.0.0.0:8817            0.0.0.0:*               LISTEN      5308/mongod
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN      652/sshd
tcp        0      0 localhost:smtp          0.0.0.0:*               LISTEN      907/master
tcp        0      0 localhost:32000         0.0.0.0:*               LISTEN      2418/java
tcp        0      0 localhost:27017         0.0.0.0:*               LISTEN      1797/mongod
tcp6       0      0 [::]:monkeycom          [::]:*                  LISTEN      2418/java
tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN      1/systemd
tcp6       0      0 [::]:webcache           [::]:*                  LISTEN      3387/java
tcp6       0      0 [::]:http               [::]:*                  LISTEN      4534/httpd
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      652/sshd
tcp6       0      0 [::]:ddi-tcp-1          [::]:*                  LISTEN      28290/node
tcp6       0      0 localhost:smtp          [::]:*                  LISTEN      907/master
tcp6       0      0 [::]:https              [::]:*                  LISTEN      4534/httpd
tcp6       0      0 localhost:mxi           [::]:*                  LISTEN   …
0
[root@web02 ~]# cat /etc/*-release
CentOS release 6.8 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)

[root@web02 ~]# yum info -v apache-tomcat-apis
Loading "fastestmirror" plugin
Config time: 0.076
Yum Version: 3.2.29
rpmdb time: 0.000
Setting up Package Sacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.rafal.ca
 * extras: centos.mirror.rafal.ca
 * updates: ca.mirror.babylon.network
pkgsack time: 0.126
Installed Packages
Name        : apache-tomcat-apis
Arch        : noarch
Version     : 0.1
Release     : 1.el6
Size        : 246 k
Repo        : installed
From repo   : base
Committer   : Andrew Overholt <overholt@redhat.com>
Committime  : Tue Feb  2 07:00:00 2010
Buildtime   : Wed Nov 10 19:18:17 2010
Install time: Sun May 28 11:58:23 2017
Installed by: root <root>
Changed by  : System <unset>
Summary     : Tomcat Servlet and JSP APIs
URL         : http://tomcat.apache.org/
License     : ASL 2.0
Description : Apache Tomcat's Servlet 2.4/JSP 2.0 and Servlet 2.5/JSP 2.1 APIs.

[root@web01 ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

[root@web01 ~]# yum info -v apache-tomcat-apis
Loading "fastestmirror" plugin
Config time: 0.009
Yum version: 3.4.3
rpmdb time: 0.000
Setting up Package Sacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.globo.tech
 * extras: centos.bhs.mirrors.ovh.net
0
Hi everyone, I would like to have outputs of tcpdump in standard structure. Like below:

05:49:56.604899 00:00:00:00:00:02 > 00:00:00:00:00:03, ethertype IPv4 (0x0800), length 10202: 10.0.0.2.54880 > 10.0.0.3.5001: Flags [.], seq 3641977583:3641987719, ack 129899328, win 58, options [nop,nop,TS val 432623 ecr 432619], length 10136
05:49:56.604908 00:00:00:00:00:03 > 00:00:00:00:00:02, ethertype IPv4 (0x0800), length 66: 10.0.0.3.5001 > 10.0.0.2.54880: Flags [.], ack 10136, win 153, options [nop,nop,TS val 432623 ecr 432623], length 0
05:49:56.604900 00:00:00:00:00:02 > 00:00:00:00:00:03, ethertype IPv4 (0x0800), length 4410: 10.0.0.2.54880 > 10.0.0.3.5001: Flags [P.], seq 10136:14480, ack 1, win 58, options [nop,nop,TS val 432623 ecr 432619], length 4344

Open in new window


However it is important for me that all these structured information saved in 10 files with size of 10 MB. I know that I have to use this command:

tcpdump -i h1-eth0 -w /tmp/trace.txt -W 10 -C 10 -K -n

Open in new window


However the problem is that, the out put is not in standard way. Can you please help me to find a single command that gives me the standard out put of the tcpdump in 10 files with size of 10 MB?
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
i downloaded driver from tp-link site.but i don't know how to install it? tell me step by step. or another solution for driver installation.
0
Unable to copy or move files in a linux folder into a mounted mapped network drive.  Getting error file or directory does not exist but yet it does and can display files in the shared folder.
0
Monthly Recap
Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Can anyone recommend a good Linux tutorial, learning from the ground up?
0
i have the following connection. i did clone a server and i would like to see whats running so i can stop those daemon on the cloned VM.
what is the best way to tell which app or service running?


Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LISTEN      1890/java
tcp        0      0 0.0.0.0:8009                0.0.0.0:*                   LISTEN      1890/java
tcp        0      0 127.0.0.1:27017             0.0.0.0:*                   LISTEN      2013/mongod
tcp        0      0 0.0.0.0:60333               0.0.0.0:*                   LISTEN      1300/rpc.statd
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1278/rpcbind
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      1890/java
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      1942/httpd
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1731/sshd
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      1499/cupsd
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1813/master
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      1942/httpd
tcp        0      0 ip:60288   …
0
My Samba shares recently went missing. After some quick troubleshooting I found that its lost connectivity with the AD servers. The result of a 'net ads info' No login servers.   Since this has been working for sometime now I looked for recent changes. The only significant change is the my 2008 R2 domain controllers installed Service Pack 1.  I saw an error stating that "my-server-name" failed to authenticate. Access is denied.

I removed the samba server from AD and then added it back in. i restarted samba services tried again to no avail. I then removed the client completely and reinstalled but the same error occurred.  I feel like this is AD related but can't discern a path to troubleshoot.
0
We have been attempting for days now to join a Linux client to the Microsoft Active Directory domain.

The process we are using is located at:
https://wiki.archlinux.org/index.php/Active_Directory_Integration#Active_Directory_Configuration

When we get to the Join the Domain - using the command
net ads join -U Administrator

Open in new window



We receive an error:
Failed to join domain: failed to lookup DC info for domain 'DOMAIN NAME' over rpc: Undetermined error

Open in new window


Any help and more information about our configuration is available upon request.

Thanks,
Jim
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

Linux Networking

17K

Solutions

3

Articles & Videos

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.