Posts

Showing posts from February, 2014

Red Hat Linux Static Routing Configuration

Red Hat Linux Static Routing Configuration I've two network interface connected to two different routers as follows:   [a] eth0 LAN network 10.0.0.0/8 - gateway IP - 10.8.2.65 [b] eth1 ISP assigned network 202.54.22.128/28 - gateway IP - 202.54.22.129 I can only ping to public server but not to another servers inside LAN? I'm not able to route traffic via 10.8.2.65. How do I configure static routing under Red Hat Enterprise Linux 5.x or CentOS Linux 5.2? A. Under Red Hat you need to define static routing using route command. The configuration is stored under /etc/sysconfig/network-scripts/route-eth0 for eth0 interface. Update route using route command Type the following command: # route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.8.2.65 eth0 # route -n Create static routing file The drawback of abive 'route' command is that, when RHEL reboots it will forget static routes. So store them in configuration file: echo '10.0.0.0/8 via ...

Configure rsyslog, configure syslog

Configuring rsyslog on the Centralized Logging Server The steps in this procedure must be followed on the system that you intend to use as your centralized logging sever. All steps in this procedure must be run while logged in as the root user. Configure SELinux to allow rsyslog traffic. # semanage -a -t syslogd_port_t -p udp 514 Configure the iptables firewall to allow rsyslog traffic. Open the /etc/sysconfig/iptables file in a text editor. Add an INPUT rule allowing UDP traffic on port 514 to the file. The new rule must appear before any INPUT rules that REJECT traffic. -A INPUT -m state --state NEW -m udp -p udp --dport 514 -j ACCEPT Save the changes to the /etc/sysconfig/iptables file. Restart the iptables service for the firewall changes to take effect. # service iptables restart Open the /etc/rsyslog.conf file in a text editor. Add this line to the file, defining the location logs will be saved ...