Re: OpenSSH 4.3 VPN?



I guess where I get confused is the IP addresses on the tun0
interface. I'm assuming I can accomplish what I want by having the
IPs be local to that network (so it doesn't go out the default
route) and then NATing that interface? I'm not sure, as we haven't
figured out what the IP scheme should be.

Specifically what's the IP address on a tun interface, and how does
it relate to the pointopoint IP address that you can also assign?

Scott

Alexander Klimov wrote:
On Fri, 10 Feb 2006, Scott Baker wrote:
That will setup the tunnel between the two points. What do I need to
do with that tun0 interface to all my home PC access to all my
servers. I don't want to have to change my routes on all my servers,
is that possible? Does the tun0 interface need IPs on it? If so what
subnets should they be on?

IIUC, what ssh gives you is almost identical to the following: you get
two network cards, insert one to ssh server's host, another one to the
client's one, and connect them with a cross-over cable. Now you want
packets from A to B to be routed thru this C-S connection. You can
avoid changing routing table of A and B but then you have to setup
routes on the default routers of A and B so that they forward packets
to C and S respectively, and C and S should forward between one
network card and this virtual one.




Relevant Pages

  • syntec question on pf redirect
    ... I think I am getting a little mixed up on understanding pf redirection. ... with the style of setup I have. ... The way my rules are create is that I restrict on the tun0 ... https, ect) on that interface. ...
    (comp.unix.bsd.openbsd.misc)
  • Re: ipfw and tun0
    ... PPP session via the tun0 interface. ... > When I block those SYN packets, I still see them on tun0 but the RST ... This implies that the firewall rules are working. ...
    (freebsd-questions)
  • Re: Choosing which interface to use
    ... As a result of the VPN client running I ... xl0 needed by the dhcp ... client and tun0 used by the vpn client. ... remote IP addr and the routing table defines the interface to be used. ...
    (freebsd-questions)
  • Re: Which interface do I put natd and ipfw
    ... I need help to set up firewall on my freebsd 5.1 box. ... I need to know which of the 3 interfaces do I put the natd and ipfw. ... I have traffc coming in through the tun0 from outside to the LAN. ... How do I configure the tun0 interface for the firewall since I do ...
    (freebsd-questions)
  • Re: Postfix handoff on dialup
    ... > When I first installed I used KPPP until I got comfortable with system ... > connect via userland ppp and tun0. ... With the tun0 interface, I have ...
    (comp.unix.bsd.freebsd.misc)