Networking Forums

Networking Forums > Computer Networking > Linux Networking > vpnc and tun0 and iptables

Reply
Thread Tools Display Modes

vpnc and tun0 and iptables

 
 
H. S.
Guest
Posts: n/a

 
      04-22-2005, 04:42 AM
I recently installed vpnc on a laptop running Debian Sid. After fiddling
around I realized I need to change my custome iptables script to make
vpnc work. I allowed access to the tun0 interface and was able to work
by connecting to my university.

Since then I have modified my firewall script. Now, I basically
implement all interfaced rules to all interfaces (eth0, wlan0 and tun0).
So I do:

default stuff here (clearing chains, creating new ones, default policy ,
etc)
for NIF in "eth0 wlan0 tun0"; do
block ping
block invalid address
allow ssh to NIF
allow stuff for realplayer at NIF
allow dhcp stuff at NIF
etc.
done

Is this the correct way to do it? I am basically considering tun0 just
at eth0 or wlan0 on which I want to allow SSH and other stuff.

Forgive me if the above it not accurate. If you wish, I can post my
iptables rules here.

regards,
->HS


--
Please remove the underscores ( the '_' symbols) from my email address
to obtain the correct one. Apologies, but the fudging is to remove spam.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vpnc and resolv.conf blueparty Linux Networking 6 11-10-2011 07:07 PM
VPNC connection problems ziikell101 Linux Networking 3 06-27-2010 10:08 AM
vpnc password Norbert Linux Networking 0 10-23-2007 11:06 PM
Route by IP address over tun0 - 'ip rule add from a.b.c.d' morleyc@gmail.com Linux Networking 2 07-11-2007 10:38 PM
linux router using iptables: how to allow vpnc from lan H. S. Linux Networking 1 05-19-2005 12:48 AM



1 2 3 4 5 6 7 8 9 10 11