LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2008, 02:24 AM   #1
kyawlinnyein
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Question iptables rule module error , how can I solve that?


I start my server and at that once after my server is start , I can't use lynx and squid from client,
That time I did service iptables off => show me the follow message
service iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: mangle nat filter [ OK ]
Unloading iptables modules: [ OK ]

Then I can use lynx from client computer .
I have already off chkconfig iptables , what's the error I met
how can I solve , I used fedora 8 x86_64 , 2.6.25.4-10.fc8 #1 SMP
Then I did all
cat /etc/rc.local
# 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
/usr/local/sbin/dhcpd eth1
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/tcp_syncookies
echo "1" > /proc/sys/net/ipv4/conf/all/rp_filter
echo "1" > /proc/sys/net/ipv4/conf/all/proxy_arp
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo "0" > /proc/sys/net/ipv4/conf/all/accept_source_route
echo "1" > /proc/sys/net/ipv4/conf/all/secure_redirects
echo "1" > /proc/sys/net/ipv4/conf/all/log_martians
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X
iptables -t nat -X
iptables -t mangle -X
echo "Firewall completely flushed! Now running with no firewall."
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8080
iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to-source 10.1.0.2
THEN I did
mv /etc/rc.local rc.local.old
ecexiting.h
o "1" > /proc/sys/net/ipv4/tcp_syncookies
[root@cahce ~]# echo "1" > /proc/sys/net/ipv4/conf/all/rp_filter
[root@cahce ~]# echo "1" > /proc/sys/net/ipv4/conf/all/proxy_arp
[root@cahce ~]# echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
[root@cahce ~]# echo "0" > /proc/sys/net/ipv4/conf/all/accept_source_route
[root@cahce ~]# echo "1" > /proc/sys/net/ipv4/conf/all/secure_redirects
[root@cahce ~]# echo "1" > /proc/sys/net/ipv4/conf/all/log_martians
[root@cahce ~]# iptables -F
[root@cahce ~]# iptables -t nat -F
[root@cahce ~]# iptables -t mangle -F
[root@cahce ~]# iptables -X
[root@cahce ~]# iptables -t nat -X
[root@cahce ~]# iptables -t mangle -X
[root@cahce ~]# echo "Firewall completely flushed! Now running with no firewall."
Firewall completely flushed! Now running with no firewall
BUT AFTER THAT I GOT Disconnect(DC) and I restart my pressing restart button of my server , then I did service iptables off again at the first time
how can I solve

Last edited by kyawlinnyein; 06-18-2008 at 12:56 AM.
 
Old 06-17-2008, 01:50 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
I think you need to describe your network a little - i.e.: who has what IP - what do you want to achieve.
Server is a proxy? Why the NAT?

Quote:
BUT AFTER THAT I GOT DC and...
- What is "DC" - in fact I can't figure out the meaning of that whole sentence
 
Old 06-17-2008, 02:02 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What is your problem exactly?

BTW if you are trying to do a transparent proxy of HTTPS, it won't work
 
Old 06-18-2008, 12:59 AM   #4
kyawlinnyein
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jomen View Post
I think you need to describe your network a little - i.e.: who has what IP - what do you want to achieve.
Server is a proxy? Why the NAT?

- What is "DC" - in fact I can't figure out the meaning of that whole sentence
"DC" sorry I use short term for our country, "Disconnect"
 
Old 06-18-2008, 02:54 PM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
again: you need to describe your network a little - i.e.: who has what IP - what do you want to achieve? Where and what is the proxy? It could be misconfigured - does it even exist?...
billymayday already said that transparent proxying of https (port 443) will not work...

nothing to work with here...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: rule with RETURN target just after a rule with ACCEPT target Nerox Linux - Networking 6 09-04-2011 03:33 PM
Help!How to solve this error-about module.h missing problem woodyblue Linux - Newbie 2 05-12-2008 12:26 AM
iptables state module not loaded error rnj Fedora 2 10-28-2004 11:33 PM
How To Solve The Kernel Module Version Mismatch Problem ? linu_soft Programming 2 07-21-2004 04:47 AM
iptables module error? hotrodowner Linux - Networking 1 04-02-2003 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration