LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-18-2004, 05:18 PM   #1
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
ping loss w/ iptables


When I restart my server, I lose all my iptables. With a completly open firewall, I'm able to ping and get results. However, this causes my ping to stop working...

# iptables -F
# iptables -P INPUT DROP
# iptables -A INPUT -p tcp --dport 80 -j ACCEPT
# iptables -A INPUT -p tcp --dport 443 -j ACCEPT
# iptables -P OUTPUT ACCEPT
# iptables -P FORWARD DROP
# iptables -A INPUT -i lo -j ACCEPT
# iptables -A OUTPUT -o lo -j ACCEPT

When I flush the iptables, ping continues to not function. That seems odd and my newbie skills are maxed out... can someone show me the light? Also, what is the best (efficient,secure) way to have an iptables script run upon startup? Thanks in advance!
 
Old 02-18-2004, 08:18 PM   #2
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
iptables -F INPUT

doesn't affect the chain's policy, which you've set to DROP.

Use:

iptables -P INPUT ACCEPT

to open things wide open.

Lyle
 
Old 02-18-2004, 08:32 PM   #3
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Original Poster
Rep: Reputation: 15
Allowing ping/lynx through firewall?

Okay that will allow me to start fresh, but how do I allow ping/lynx using the iptables above?
 
  


Reply



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
ping packet loss 100% kpachopoulos Linux - Networking 1 04-14-2005 05:29 PM
iptables - Sudden loss of connectivity ckenshol Linux - Networking 5 03-21-2004 02:41 PM
ping packet loss on FreeBSD Vyeperman *BSD 4 10-04-2003 12:58 AM
ping 100% packets loss. linux 2.5.69 odomae Linux - Networking 11 08-11-2003 11:17 AM
Network Packet Loss and IPTABLES weazy Linux - Networking 7 04-24-2003 03:20 PM

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

All times are GMT -5. The time now is 06:13 AM.

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