LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-29-2009, 09:36 AM   #1
mora978
LQ Newbie
 
Registered: Aug 2009
Distribution: Debian
Posts: 8

Rep: Reputation: 1
Question iptables firewall problem


Hi all!

I've got some routing issue with my debian lenny system. I have iptables installed, and i wrote my firewall script. The system has two ethernet interfaces, and a ppp0 interface for the ADSL. The eth0 is connected to the local network, and i have a dhcp server set up for it. Untill this morning the internet connection sharing worked fine, and now it doesnt. I just cannot understand what is going on. Everything else in the firewall script is working fine except this function.
As far as i remember i didn't change any config files... And i don't have a clue what happened.

In my firewall script this is the section about masquerading:
Code:
if [ -e /proc/sys/net/ipv4/ip_forward ]; then
	echo 1 > /proc/sys/net/ipv4/ip_forward
fi
$IPT -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
$IPT -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
If you can help me and need further details, let me know what they are.
Thanks.
 
Old 08-29-2009, 01:12 PM   #2
mora978
LQ Newbie
 
Registered: Aug 2009
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 1
solved! There was no problem with my script. I just made a mistake in the dhcpd.conf file...
 
Old 08-29-2009, 01:15 PM   #3
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Nice work -- always gratifying to find the solution on ones' own

You can mark your thread [solved] using "Thread Tools" at the top.

Cheers!
Sasha
 
Old 08-29-2009, 01:31 PM   #4
mora978
LQ Newbie
 
Registered: Aug 2009
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 1
thanks for the information, i will...
 
  


Reply

Tags
iptables


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 firewall routing problem robbtek Linux - Networking 3 03-27-2009 09:17 PM
IPtables/Firewall problem guygriffiths Linux - Security 2 11-21-2003 07:16 AM
iptables internet to firewall problem. remigus Linux - Networking 2 09-29-2003 01:27 PM
Firewall Rules Problem with Iptables JereBear Linux - Networking 1 06-16-2002 04:28 PM
Strange iptables firewall problem. Bomber Linux - Security 5 01-15-2002 06:33 PM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration