Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Linux DVB Server Setup Commands 2006

Linux DVB Server Setup Commands 2006

Ratings: (0)|Views: 166 |Likes:
Published by api-3832033
Linux DVB Server Setup Commands 2006
Linux DVB Server Setup Commands 2006

More info:

Published by: api-3832033 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Advanced Micr o Computer s Online
Broadband I nternet Service Provider and Computer Sales & Service Centre
Head Office: Begum Mill Moor, Biman Office Road, Kazi Para, Puratan Koshba, Jessore-7400, Bangladesh.
Branch Office: Arabpur Moor, Airport Road, Near Cantonment Rail Crossing, 1st Floor, Jessore-7400, Bangladesh.
Phone: 880-421-67776 (Off.), 66065 (Res.) E-mail: am con l i n e@g m ai l . com
Mobile: 0174-041324, 0171-283839, 0171-972810
Copyright \u00a9 Advanced Micro Computers Online 2002-2005. All Rights Reserved.
vi / et c/ rc.local
[root@dvb@amconline root]# vi /etc/rc.local
# !/bin/sh
## This script will be executed * after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -F
/sbin/iptables -t nat -F
iptables -A I NPUT -s 0/ 0 -d 0/ 0 -p icmp -j DROP
iptables -A I NPUT -i eth1 -s 0/ 0 -d 0/ 0 -p icmp -j DROP
iptables -A FORWARD -i eth1 -s 0/ 0 -d 0/ 0 -p icmp -j DROP
iptables -A FORWARD -s 0/ 0 -d 0/ 0 -p icmp -j DROP
iptables -A I NPUT -i eth0 -s 0/ 0 -d 0/ 0 -p icmp -j DROP
iptables -A FORWARD -i eth0 -s 0/ 0 -d 0/ 0 -p icmp -j DROP

iptables -A I NPUT -p icmp -s 0/ 0 --icmp-type echo-request -j LOG --log-prefix "PING_denied"
iptables -A I NPUT -p icmp --icmp-type echo-request -j DROP
iptables -A I NPUT -i eth1 -p icmp --icmp-type echo-reply -j DROP

iptables -A I NPUT -p icmp -i eth0 -s 192.168.1.0/ 24 --icmp-type echo-request -j LOG --log-prefix "PI NG_denied"
iptables -A I NPUT -p icmp -i eth0 -s 0/ 0 --icmp-type echo-request -j DROP
iptables -X

iptables -A I NPUT -i eth1 -m state --state I NVALI D -j LOG --log-prefix "I NVALI DI NPUT_denied"
iptables -A I NPUT -i eth1 -m state --state I NVALI D -j DROP
iptables -A FORWARD -i eth1 -m state --state I NVALI D -j LOG --log-prefix "I NVALI DForwad_denied"

iptables -A FORWARD -i eth1 -m state --state I NVALI D -j DROP
NETBI OS_TCP= "135,136,137,138,139,445,3127,3198"
NETBI OS_UDP= "60,66,72,78,100,135,136,137,138,139"

iptables -A I NPUT -s 0/ 0 -p tcp -m multiport --dport $NETBI OS_TCP -j DROP
iptables -A I NPUT -s 0/ 0 -p udp -m multiport --dport $NETBI OS_UDP -j DROP
iptables -A FORWARD -s 0/ 0 -p tcp -m multiport --dport $NETBI OS_TCP -j DROP
iptables -A FORWARD -s 0/ 0 -p udp -m multiport --dport $NETBI OS_UDP -j DROP

/ sbin/ iptables -t nat -A POSTROUTI NG -s 0/ 0 -d 0/ 0 -j MASQUERADE
/linux-install/pentaval-RHx-2.1.10/pentavalt -a -d pentaval0 -f /etc/pentaval.conf

# iptables -A INPUT -p tcp -s 192.168.1.47/ 32 -d 0/ 0 --dport 8080 -j DROP
# iptables -A FORWARD -p tcp -s 192.168.1.47/ 32 -d 0/ 0 --dport 8080 -j DROP
# iptables -A INPUT -p tcp -s 192.168.1.47/ 32 -d 0/ 0 --dport 80:8080 -j REJECT
# iptables -A FORWARD -p tcp -s 192.168.1.47/ 32 -d 0/ 0 --dport 80:8080 -j REJECT

# /etc/rc.d/cbq.init start
# /linux-install/pentaval-RHx-2.1.10/pentavalm
Advanced Micr o Computer s Online
Broadband I nternet Service Provider and Computer Sales & Service Centre
Head Office: Begum Mill Moor, Biman Office Road, Kazi Para, Puratan Koshba, Jessore-7400, Bangladesh.
Branch Office: Arabpur Moor, Airport Road, Near Cantonment Rail Crossing, 1st Floor, Jessore-7400, Bangladesh.
Phone: 880-421-67776 (Off.), 66065 (Res.) E-mail: am con l i n e@g m ai l . com
Mobile: 0174-041324, 0171-283839, 0171-972810
Copyright \u00a9 Advanced Micro Computers Online 2002-2005. All Rights Reserved.
vi / etc/ sysconfig/ netw ork-scripts/ ifcfg-eth0
[root@dvb@amconline root]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVI CE= et h0
BOOTPROTO= st at ic
BROADCAST= 203.91.153.47
I PADDR= 203.91.153.42
NETMASK= 255.255.255.248
NETWORK= 203.91.153.40
ONBOOT= yes
vi / etc/ sysconfig/ netw ork-scripts/ ifcfg-eth0
root@dvb@amconline root]# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVI CE= et h1
BOOTPROTO= st at ic
BROADCAST= 192.168.1.255
I PADDR= 192.168.1.254
NETMASK= 255.255.255.0
NETWORK= 192.168.1.0
ONBOOT= yes
vi / etc/ resolv.conf
[root@dvb@amconline root]# vi /etc/resolv.conf

nameserver 210.80.58.66
nameserver 203.112.196.17
nameserver 203.112.196.15

# nameserver 203.112.202.195
# nameserver 210.80.58.66
# nameserver 203.188.191.5
# nameserver 203.188.191.6

vi / etc/ sysctl.conf
[root@dvb@amconline root]# vi /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
## For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PI D to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->