> On 14 Jun 2017, at 02:07, Pippin1st <[email protected]> wrote:
> 
> >> One thing I would like to highlight is that it seems that packets going
> >> from the App to tun0 are then re-entering routing/iptables before reaching 
> >> OpenVPN.
> >> This should not happen because packets entering tun0 are then directly
> >> delivered to OpenVPN.
> >> (not sure how this could be fixed in the diagram)
> >> Antonio Quartulli
> 
> 
> >>> I believe the diagram is correct - packets sent by an application to
> >>> tun0 *ARE* processed using iptables before reaching OpenVPN - if you set
> >>> a rule
> >>>    iptables -I INPUT -i tun+ -j DROP
> >>> then no packets would enter the tunnel....
> 
> 
> Hmm, i think so too because putting rules in the forward chain
> one can control inter-client traffic...
> When pinging from client to client running tcpdump, one can see packets
> come into tun and back to OpenVPN according to:
> http://backreference.org/2010/05/02/controlling-client-to-client-connections-in-openvpn/
> 
> 
> Also, using the iptables owner module one can make an very effective
> "kill switch" for traffic trying to get out where it should not.
> 


in your diagram, on the sending side, packets cross the routing/iptables block 
twice before getting to OpenVPN:
1) once while going from the app to the tun0 interface
2) once while going from tun0 to OpenVPN


What you are saying above is correct and it is about point 1).
My argument was about point 2): once packets have entered tun0, they directly 
go to the OpenVPN process (which is attached to tun0), without being processed 
by routing/iptables again.


Cheers,


--
Antonio Quartulli



Attachment: signature.asc
Description: Message signed with OpenPGP

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to