LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-20-2004, 04:31 AM   #1
z3pp0
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Rep: Reputation: 0
Question iptables & vpn


Hi everyone,


I have successfully set up a pptp VPN on one of linux boxes. In order for a vpn client see the internal network, i added an iptables rule, telling it to nat all packets from the ppp interface to the eth0 interface. I am still having a problem with packets not being broadcasted to the ppp interface, so as a result i am not seeing samba workgroups or applettalk networks.

Can someone tell me if it is possible in iptables for all traffic being routed to eth0, to be forwarded to ppp also? this way i can get all broadcasts on the local network being sent to my vpn.

Your help will be greatly appreciated.
 
Old 09-20-2004, 08:00 PM   #2
z3pp0
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Original Poster
Rep: Reputation: 0
bump
 
Old 09-20-2004, 08:28 PM   #3
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Try adding "proxyarp" to your ppp options
Also I don't think its neccesary to do NAT, as long as other hosts on the LAN knows how to get to the remote client (eg using the VPN server as the gateway), it should be fine.
 
Old 09-21-2004, 02:37 AM   #4
z3pp0
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Original Poster
Rep: Reputation: 0
hey there,

thanks for replying.

This is what i have as my ppp options

Code:
lock
proxyarp
auth
require-mppe
require-mschap-v2
So proxyarp is activated but it still does not forward packets. The VPN is also on the gateway and when i try to ping my VPN client ipaddress from the gateway eth0, it does not reply.
 
  


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
vpn behind iptables kris2002 Linux - Networking 3 06-26-2005 10:18 AM
Iptables Setup for Internet Sharing, Servers & VPN bLaDe Linux - Security 3 06-09-2004 06:09 AM
iptables VPN bentman78 Linux - Software 0 05-03-2004 07:27 AM
VPN / Iptables a_borg1 Linux - Networking 0 08-13-2003 07:20 PM
iptables and vpn buttnutt Linux - Security 1 05-29-2002 02:46 AM

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

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