Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-31-2004, 10:17 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2004
Posts: 3
Rep:
|
I configure NAT and use "services ..." to save it but when I reboot there is no nat
Hi all,
I am running RH9. I have my firewall configured and working fine. I issue a nat command to enable nat, then use the service ... command to save it, and can see it in the iptables file. But when I reboot I don't get nat. If I manually reissue the command all works great. Do I need to provide more info or is there someting simple here I'm missing?
|
|
|
|
08-31-2004, 11:50 AM
|
#2
|
|
Member
Registered: May 2004
Distribution: redhat, trustix, debian
Posts: 103
Rep:
|
it's not clear enough for me
what firewall do you use, and whith what command are you saving it?
|
|
|
|
08-31-2004, 06:14 PM
|
#3
|
|
LQ Newbie
Registered: Aug 2004
Posts: 3
Original Poster
Rep:
|
# Generated by iptables-save v1.2.7a on Sat Aug 21 14:07:17 2004
*nat
:PREROUTING ACCEPT [8:894]
:POSTROUTING ACCEPT [45:2951]
:OUTPUT ACCEPT [45:3132]
[3:361] -A POSTROUTING -o eth1 -j SNAT --to-source 166.70.87.58
COMMIT
# Completed on Sat Aug 21 14:07:17 2004
# Generated by iptables-save v1.2.7a on Sat Aug 21 14:07:17 2004
*mangle
:PREROUTING ACCEPT [1871:128641]
:INPUT ACCEPT [1864:127783]
:FORWARD ACCEPT [5:300]
:OUTPUT ACCEPT [1723:128158]
:POSTROUTING ACCEPT [1732:129416]
COMMIT
# Completed on Sat Aug 21 14:07:17 2004
# Generated by iptables-save v1.2.7a on Sat Aug 21 14:07:17 2004
*filter
:INPUT ACCEPT [3:252]
:FORWARD ACCEPT [2:120]
:OUTPUT ACCEPT [1723:128158]
:RH-Lokkit-0-50-INPUT - [0:0]
[1864:127783] -A INPUT -j RH-Lokkit-0-50-INPUT
[5:300] -A FORWARD -j RH-Lokkit-0-50-INPUT
[0:0] -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 22 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
[1482:101205] -A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT
[369:24867] -A RH-Lokkit-0-50-INPUT -i eth0 -j ACCEPT
[4:796] -A RH-Lokkit-0-50-INPUT -s 198.60.22.2 -p udp -m udp --sport 53 -j ACCEPT
[0:0] -A RH-Lokkit-0-50-INPUT -s 198.60.22.22 -p udp -m udp --sport 53 -j ACCEPT
[0:0] -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -j REJECT --reject-with icmp-port-unreachable
[9:843] -A RH-Lokkit-0-50-INPUT -p udp -m udp -j REJECT --reject-with icmp-port-unreachable
COMMIT
# Completed on Sat Aug 21 14:07:17 2004
After this runs I don't have nat. So I issue the command:
/sbin/iptables -t nat -A POSTROUTING -o $EXTIF -j SNAT --to-source $EXTADDR
Then everything works great.
If I execute the command "service save iptables" or "iptables-save > /etc/sysconfig/iptables" the above file is the result. But when I reboot I once again do not have nat.
Thanks, in advance, for your help.
Bruce
|
|
|
|
08-31-2004, 06:15 PM
|
#4
|
|
LQ Newbie
Registered: Aug 2004
Posts: 3
Original Poster
Rep:
|
Oh, and I'm just using iptables w/ RH9. I have an outboard ip w/ my isp and and inboard that I have configed as 10.0.1.1
|
|
|
|
09-01-2004, 02:38 AM
|
#5
|
|
Member
Registered: May 2004
Distribution: redhat, trustix, debian
Posts: 103
Rep:
|
tried iptables-restore?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:28 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|