LinuxQuestions.org
Help answer threads with 0 replies.
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 03-12-2009, 05:28 AM   #1
ahsansaifi
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
Question libipq pppoe


i am using libipq to queue packets to user space where i am doing my own natting and connection tracking and returning packets back to kernel. everything is working fine except with pppoe. i have two interfaces eth0 and eth1 on my linux mc. i startup pppoe which brings up ppp0 and bind it to eth0. To queue packets i make following iptable rules
iptables -t manlgle -A PREROUTING -j QUEUE
iptables -t nat -A POSTROUTING -j QUEUE
iptables -t nat -A OUTPUT -j QUEUE
iptables -A INPUT -j QUEUE

These rules queue packets for my userspace application.
my setup is like this--
client machine with gateway address of eth1 of my linux mc
linux mc with eth1 and eth0(ppp0)
adsl modem

from browser in client machine i send browse requset for say www.google.com. it goes to eth1 of linux mc. prerouting hook catches the packet, accepts it. then postrouting hook picks it up and changes the source address to that of ppp0 and the packet goes out from ppp0. so far so good. the reply packet which comes back is not captured by any hook and gets dropped and the communication does not proceed. i have tried by giving ipaddress of google directly so that dns queries are skipped and tcp packets flow. but only sync is sent, sync ack comes back but it is dropped and reset is sent.

if i am not using pppoe every thing is working fine.
where i am wrong?
 
Old 05-01-2009, 05:50 AM   #2
route
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Rep: Reputation: 0
Can you post your code?

Last edited by route; 05-01-2009 at 05:51 AM.
 
  


Reply

Tags
libipq, pppoe



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
Kernel AODV and libipq mahbub_bd Linux - Networking 1 05-19-2011 04:24 AM
libipq, iptables, tunneling Connor.Poske Linux - Networking 0 07-01-2008 01:24 PM
DISCUSSION: Libipq by example mad_ady LinuxAnswers Discussion 0 07-27-2006 05:07 PM
adsl-status can't read pppoe PID file with rp-pppoe program setup Smarvy Linux - Newbie 2 03-13-2004 11:35 PM
problem with trying the libipq example code enjoyzj Programming 4 12-07-2003 07:41 PM

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

All times are GMT -5. The time now is 05:23 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