Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SR06
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Theo Maillart
SR06
Commits
574097ae
Commit
574097ae
authored
Dec 08, 2017
by
Theo Maillart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final conf NAT & PAT totally redefined
parent
b76e9ffc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
Cisco/routeur
Cisco/routeur
+6
-11
Docker/server/Dockerfile
Docker/server/Dockerfile
+1
-1
No files found.
Cisco/routeur
View file @
574097ae
...
...
@@ -91,6 +91,7 @@ ip access-group 104 in
! PAT
! need vlan83 outside & vlan82 inside
ip nat inside source static tcp 10.0.82.3 80 10.0.83.1 3128
ip nat inside source static tcp 10.0.82.3 22 10.0.83.1 3122
! modify 101 rule
access-list 101 permit icmp 10.0.83.0 0.0.0.255 any echo
...
...
@@ -98,20 +99,14 @@ access-list 101 permit tcp any any eq 80
access-list 101 permit tcp any any eq 22
access-list 101 permit tcp any any eq 21
access-list 101 permit tcp any host 10.0.83.1 eq 3128
access-list 101 permit tcp any host 10.0.83.1 eq 3122
access-list 101 deny ip any any log
! NAT inside = priv outside =target
interface vlan 83
ip nat inside
interface vlan 82
ip nat outside
ip nat pool ovrld 10.0.82.1 10.0.82.1 prefix 24
interface vlan 82
ip nat inside
ip nat pool ovrld 10.0.83.1 10.0.83.1 prefix 24
ip nat inside source list 9 pool ovrld overload
access-list 9 permit 10.0.83.0 0.0.0.255
! modify 103 rule
access-list 103 permit icmp host 10.0.82.1 10.0.82.0 0.0.0.255 echo
access-list 103 permit tcp any host 10.0.82.3 eq 80
access-list 103 permit tcp any host 10.0.82.3 eq 22
access-list 103 permit tcp any host 10.0.82.3 eq 21
access-list 103 deny ip any any log
access-list 9 permit 10.0.82.0 0.0.0.255
Docker/server/Dockerfile
View file @
574097ae
FROM
debian:latest
# Container 1 vlan_personnel
RUN
apt update
\
&&
apt
install
-yq
openssh-server proftpd-basic apache2
\
&&
apt
install
-yq
openssh-server proftpd-basic apache2
telnet
\
&&
rm
-rf
/var/lib/apt/lists/
*
#\ && mkdir /run/sshd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment