Hello Tom & others.

Still figthing against vpn's net rule.

I made few types of rules, one go to loc network to scale for control it.
The other one go to net network for remote access to wireless printer
conected trough router /wifi ADSL.

Thanks to Tom last week i fixed some in masq file for acces to vpn to net.

Computers in same vpn network see perfectly scale, and printer.

But now still problems
VPN server is in a pfsense utility.
In pfsense local network computers are in a diferent range 10.1.1.0/24
This local computers see scale, but the ports for printer still been
filtered.

I thing is a shorewall related missconfiguration, because office computers
can see 6000 and 22 port
This vpn shop client can access remotly to 10.1.1.0/24 computers in main
office.



figueres[~]#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0
wlan0
10.0.8.0        0.0.0.0         255.255.255.0   U     0      0        0 tun0
10.1.1.0        0.0.0.0         255.255.255.0   U     0      0        0 tun0
10.1.3.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
wlan0


My rules:

figueres[~]#cat /etc/shorewall/rules |grep -v \#
?SECTION ALL
?SECTION ESTABLISHED
?SECTION RELATED
?SECTION INVALID
?SECTION UNTRACKED
?SECTION NEW

Invalid(DROP)   net             all             tcp
DNS(ACCEPT)     $FW             net
SSH(ACCEPT)     loc             $FW
SSH(ACCEPT)     vpn             $FW

Ping(ACCEPT)    loc             $FW


Ping(DROP)      net             $FW

ACCEPT          $FW             loc             icmp
ACCEPT          $FW             net             icmp
ACCEPT          vpn             all     all
DNS(ACCEPT)     loc              $FW
SSH(ACCEPT)     net             $FW         TCP
DNAT            vpn             loc:10.1.3.2 tcp        6000
DNAT            vpn             net:192.168.1.69:80 tcp 80
DNAT            vpn             net:192.168.1.69:443 tcp 443
DNAT            vpn             net:192.168.1.69:631 tcp 631
DNAT            vpn             net:192.168.1.69:515 tcp 515
DNAT            vpn             net:192.168.1.69:9100 tcp 9100

My masq (i try to add 10.1.1.0/24) without sense, and without luck, ofcourse
figueres[~]#cat /etc/shorewall/masq |grep -v \#
wlan0                   10.1.3.0/24,\
                        10.1.1.0/24,\
                        10.0.8.0/24


This is a nmap from vpn remote:

guixols[~]#nmap 10.0.8.103

Starting Nmap 7.12 ( https://nmap.org ) at 2016-04-29 01:12 MDT
Nmap scan report for 10.0.8.103
Host is up (0.13s latency).
Not shown: 992 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
53/tcp   open  domain
80/tcp   open  http
443/tcp  open  https
515/tcp  open  printer
631/tcp  open  ipp
6000/tcp open  X11
9100/tcp open  jetdirect

This is a nmap from computer in central office:
girona[~]#nmap 10.0.8.103

Starting Nmap 6.47 ( http://nmap.org ) at 2016-04-29 09:21 CEST
Nmap scan report for figueres.tulsa.eu (10.0.8.103)
Host is up (1.6s latency).
Not shown: 992 closed ports
PORT     STATE    SERVICE
22/tcp   open     ssh
53/tcp   open     domain
80/tcp   filtered http
443/tcp  filtered https
515/tcp  filtered printer
631/tcp  filtered ipp
6000/tcp open     X11
9100/tcp filtered jetdirect

Nmap done: 1 IP address (1 host up) scanned in 39.39 seconds



This are my schemes
Shop figueres:


     Internet
          |
----------------------
|  adsl router   |
|ip:192.168.1.1| ---- [printer trougth wireless]
----------------------
          |
-------------------------------------
|firewall wlan0 to router    |
|           eth0 localnetwork|
|           tun0 openvpn      |
-------------------------------------
          |
---------------------------------------
|  few local scales in shop |
---------------------------------------

Remote shop guixols

Internet
          |
----------------------
|  adsl router    |
|ip:192.168.1.1 |
----------------------
-------------------------------------
|firewall wlan0 to router    |
|           eth0 localnetwork|
|           tun0 openvpn      |
-------------------------------------
          |
---------------------------------------
|  few local scales in shop |
---------------------------------------

My super central office :P

     Internet
          |
------------------------
|  adsl router      |
|ip:192.168.1.1   |
------------------------
          |
---------------------------------------------
|firewall    eth0 to router          |
|  pfsense eth1 localnetwork     |
|              tun0 openvpn server |
---------------------------------------------
          |
-------------------------------------------------
|  Computers & servers & printers |
-------------------------------------------------



-- 
Eduard
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to