[LARTC] Help with GRE Tunneling

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a multi-part message in MIME format.

------=_NextPart_000_00D4_01C1B478.D1BA3080
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hello everyone, I have a working pptp vpn ( gre tunneling ). I setup =
samba server on both linux server, in network A, i could see the network =
neighborhood with samba but i couldnt see the network of the otherside =
but I could open the samba server in Network B and also the workstation =
using \\networkB\share. I'd like to ask if its possible that im going to =
use the same subnet of the network B, so that both Network A and Network =
B are in the same subnet. Here is my config in pptp vpn on both =
networks. if its possible can anyone correct the config?

#Network A
/sbin/echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ

/sbin/insmod ip_gre
/sbin/ip tunnel add alas mode gre remote x.x.x.x local y.y.y.y ttl 255
/sbin/ip link set netb up
/sbin/ip addr add 192.168.1.1 dev netb
/sbin/ip route add 192.168.2.0/24 dev netb
-------------------------------------------------------------------------=
-----
#Network B
/sbin/echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ

/sbin/insmod ip_gre
/sbin/ip tunnel add text mode gre remote y.y.y.y local x.x.x.x ttl 255
/sbin/ip link set neta up
/sbin/ip addr add 192.168.2.1 dev neta
/sbin/ip route add 192.168.1.0/24 dev neta



------=_NextPart_000_00D4_01C1B478.D1BA3080
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hello everyone, I have a working pptp =
vpn ( gre=20
tunneling ). I setup samba server on both linux server, in network A, i =
could=20
see the network neighborhood with samba but i couldnt see the network of =
the=20
otherside but I could open the samba server in Network B and also the=20
workstation using <A =
href=3D"file://\\networkB\share">\\networkB\share</A>. I'd=20
like to ask if its possible that im going to use the same subnet of the =
network=20
B, so that both Network A and Network B are in the same subnet. Here is =
my=20
config in pptp vpn on both networks. if its possible can anyone correct =
the=20
config?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#Network A<BR>/sbin/echo 1 &gt;=20
/proc/sys/net/ipv4/ip_forward<BR>/sbin/ipchains -A forward -s =
192.168.1.0/24 -j=20
MASQ<BR>/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/sbin/insmod ip_gre<BR>/sbin/ip tunnel =
add alas=20
mode gre remote x.x.x.x local y.y.y.y ttl 255<BR>/sbin/ip link set netb=20
up<BR>/sbin/ip addr add 192.168.1.1 dev netb<BR>/sbin/ip route add=20
192.168.2.0/24 dev netb</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>----------------------------------------------------------------=
--------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>#Network B<BR>/sbin/echo 1 &gt;=20
/proc/sys/net/ipv4/ip_forward<BR>/sbin/ipchains -A forward -s =
192.168.2.0/24 -j=20
MASQ<BR>/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/sbin/insmod ip_gre<BR>/sbin/ip tunnel =
add text=20
mode gre remote y.y.y.y local x.x.x.x ttl 255<BR>/sbin/ip link set neta=20
up<BR>/sbin/ip addr add 192.168.2.1 dev neta<BR>/sbin/ip route add=20
192.168.1.0/24 dev neta</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_00D4_01C1B478.D1BA3080--



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux