RE: to run startup !

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



First,

Run your iptables line, then as root run 

service iptables save

This will save the your iptables ruleset into /etc/sysconfig/iptables

For the ip_forward file, just change the line in
/etc/sysctl.conf that says net.conf.ipv4.ip_forward = 0
to net.conf.ipv4.ip_forward = 1



Michael T. Halligan
--------------------
Mypoints.com
Infrastructure Engineer
415-615-1160


-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of NYINYI
Sent: Tuesday, July 13, 2004 4:13 AM
To: redhat-list@xxxxxxxxxx
Subject: to run startup !


 Dear sir, 


 I want to run this command at startup ,

iptables -A POSTROUTING -t nat -o eth0 -s 10.0.0.0/8 -d 0/0  -j
MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

How can i put , where can i put it , how can make to squid file.


 Thank

 NYINYI
 MMG Technologies


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux