SCR/SCR3.2/TP2/ŵith-ftp-service.imn
2024-01-18 00:57:37 +01:00

523 lines
9.2 KiB
Plaintext

node n0 {
type host
network-config {
hostname GW1
!
interface eth0
ipv6 address fc00::10/64
mac address 42:00:aa:00:00:00
ip address 172.16.1.254/24
!
interface eth1
ipv6 address fc00:1::10/64
mac address 42:00:aa:00:00:01
ip address 172.16.2.253/24
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
}
canvas c0
iconcoords {240 192}
labelcoords {240 228}
interface-peer {eth0 n5}
interface-peer {eth1 n4}
custom-configs {
custom-config-id default {
custom-command /bin/sh
config {
ip addr add 127.0.0.1/8 dev lo0
ip addr add 172.16.1.254/24 dev eth0
ip addr add 172.16.2.253/24 dev eth1
ip -6 addr add ::1/128 dev lo0
ip -6 addr add fc00::10/64 dev eth0
ip -6 addr add fc00:1::10/64 dev eth1
iptables -t nat -A PREROUTING -s 172.16.1.0/24 ! -d 172.16.3.0/24 -j DNAT --to-destination 172.16.2.253
iptables -A FORWARD -p tcp --dport 21 -d 172.16.2.10 -j ACCEPT
rpcbind
inetd
}
}
}
custom-enabled true
custom-selected default
}
node n1 {
type host
network-config {
hostname GW2
!
interface eth2
ipv6 address fc00:3::10/64
mac address 42:00:aa:00:00:04
ip address 45.45.45.254/21
!
interface eth1
ipv6 address fc00:2::10/64
mac address 42:00:aa:00:00:03
ip address 172.16.3.251/24
!
interface eth0
ipv6 address fc00:1::11/64
mac address 42:00:aa:00:00:02
ip address 172.16.2.252/24
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
!
!
}
canvas c0
iconcoords {552 240}
labelcoords {552 276}
interface-peer {eth0 n4}
interface-peer {eth1 n3}
custom-configs {
custom-config-id default {
custom-command /bin/sh
config {
ip addr add 127.0.0.1/8 dev lo0
ip addr add 172.16.2.252/24 dev eth0
ip addr add 172.16.3.251/24 dev eth1
ip addr add 45.45.45.254/21 dev eth2
ip -6 addr add ::1/128 dev lo0
ip -6 addr add fc00:1::11/64 dev eth0
ip -6 addr add fc00:2::10/64 dev eth1
ip -6 addr add fc00:3::10/64 dev eth2
ip route add 0.0.0.0/0 via 45.45.45.253
iptables -t nat -A PREROUTING -o eth1 -s 172.16.2.0/24 -j DNAT --to-destination 172.16.3.251
iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to-source 45.45.45.254
rpcbind
inetd
}
}
}
custom-enabled true
interface-peer {eth2 n9}
custom-selected default
}
node n3 {
type lanswitch
network-config {
hostname S3
!
}
canvas c0
iconcoords {720 24}
labelcoords {720 47}
interface-peer {e0 n1}
interface-peer {e1 n10}
}
node n4 {
type lanswitch
network-config {
hostname S2
!
}
canvas c0
iconcoords {480 144}
labelcoords {480 167}
interface-peer {e0 n0}
interface-peer {e1 n1}
interface-peer {e2 n8}
interface-peer {e3 n14}
}
node n5 {
type lanswitch
network-config {
hostname S1
!
}
canvas c0
iconcoords {192 24}
labelcoords {192 47}
interface-peer {e0 n0}
interface-peer {e2 n6}
}
node n6 {
type pc
network-config {
hostname pc1
!
interface eth0
ipv6 address fc00::21/64
mac address 42:00:aa:00:00:09
ip address 172.16.1.1/24
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
ip route 0.0.0.0/0 172.16.1.254
!
}
canvas c0
iconcoords {48 168}
labelcoords {48 199}
interface-peer {eth0 n5}
}
node n8 {
type pc
network-config {
hostname pc2
!
interface eth0
ipv6 address fc00:1::20/64
mac address 42:00:aa:00:00:06
ip address 172.16.2.2/24
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
ip route 0.0.0.0/0 172.16.2.252
!
}
canvas c0
iconcoords {240 336}
labelcoords {240 367}
interface-peer {eth0 n4}
}
node n10 {
type pc
network-config {
hostname pc3
!
interface eth0
ipv6 address fc00:2::20/64
mac address 42:00:aa:00:00:0a
ip address 172.16.3.3/24
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
!
}
canvas c0
iconcoords {864 216}
labelcoords {864 247}
interface-peer {eth0 n3}
}
node n2 {
type host
network-config {
hostname host1
!
interface eth0
ipv6 address fc00:3::11/64
mac address 42:00:aa:00:00:05
ip address 45.45.45.1/24
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
}
auto_default_routes enabled
canvas c0
iconcoords {720 216}
labelcoords {720 252}
interface-peer {eth0 n9}
}
node n7 {
type host
network-config {
hostname host2
!
interface eth0
ipv6 address fc00:3::12/64
mac address 42:00:aa:00:00:07
ip address 45.45.45.2/21
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
}
auto_default_routes enabled
canvas c0
iconcoords {840 384}
labelcoords {840 420}
interface-peer {eth0 n9}
}
node n9 {
type lanswitch
network-config {
hostname switch1
!
}
canvas c0
iconcoords {600 408}
labelcoords {600 431}
interface-peer {e0 n1}
interface-peer {e1 n2}
interface-peer {e2 n7}
interface-peer {e3 n12}
}
node n13 {
type pc
network-config {
hostname pc
!
interface eth0
ipv6 address fc00:9::20/64
mac address 42:00:aa:00:00:0d
ip address 37.37.37.1/22
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
}
auto_default_routes enabled
canvas c0
iconcoords {48 504}
labelcoords {48 535}
interface-peer {eth0 n11}
}
node n12 {
type router
model quagga
network-config {
hostname router2
!
interface eth1
ipv6 address fc00:8::1/64
mac address 42:00:aa:00:00:08
ip address 62.62.62.253/19
!
interface eth0
ipv6 address fc00:3::1/64
mac address 42:00:aa:00:00:0c
ip address 45.45.45.253/21
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
router rip
redistribute static
redistribute connected
redistribute ospf
network 0.0.0.0/0
!
router ripng
redistribute static
redistribute connected
redistribute ospf6
network ::/0
!
}
auto_default_routes enabled
canvas c0
iconcoords {528 576}
labelcoords {528 601}
interface-peer {eth0 n9}
interface-peer {eth1 n11}
}
node n11 {
type router
model quagga
network-config {
hostname router3
!
interface eth1
ipv6 address fc00:9::1/64
mac address 42:00:aa:00:00:0e
ip address 37.37.37.254/22
!
interface eth0
ipv6 address fc00:8::2/64
mac address 42:00:aa:00:00:0b
ip address 62.62.62.254/19
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
router rip
redistribute static
redistribute connected
redistribute ospf
network 0.0.0.0/0
!
router ripng
redistribute static
redistribute connected
redistribute ospf6
network ::/0
!
}
auto_default_routes enabled
canvas c0
iconcoords {312 384}
labelcoords {312 409}
interface-peer {eth0 n12}
interface-peer {eth1 n13}
}
node n14 {
type host
network-config {
hostname ftp
!
interface eth0
ip address 172.16.2.10/24
ipv6 address fc00:1::12/64
mac address 42:00:aa:00:00:0f
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
}
auto_default_routes enabled
canvas c0
iconcoords {312 48}
labelcoords {312 84}
interface-peer {eth0 n4}
services {ftp}
custom-configs {
custom-config-id default {
custom-command /bin/sh
config {
ip addr add 127.0.0.1/8 dev lo0
ip addr add 172.16.2.10/24 dev eth0
ip -6 addr add ::1/128 dev lo0
ip -6 addr add fc00:1::12/64 dev eth0
iptables -A INPUT -j ACCEPT
rpcbind
inetd
}
}
}
custom-enabled true
custom-selected default
}
link l0 {
nodes {n0 n5}
bandwidth 0
}
link l1 {
nodes {n4 n0}
bandwidth 0
}
link l2 {
nodes {n4 n1}
bandwidth 0
}
link l3 {
nodes {n3 n1}
bandwidth 0
}
link l5 {
nodes {n4 n8}
bandwidth 0
}
link l8 {
nodes {n5 n6}
bandwidth 0
}
link l9 {
nodes {n3 n10}
bandwidth 0
}
link l4 {
nodes {n9 n1}
bandwidth 0
}
link l6 {
nodes {n2 n9}
bandwidth 0
}
link l7 {
nodes {n7 n9}
bandwidth 0
}
link l11 {
nodes {n9 n12}
bandwidth 0
}
link l10 {
nodes {n12 n11}
bandwidth 0
}
link l12 {
nodes {n13 n11}
bandwidth 0
}
link l13 {
nodes {n4 n14}
bandwidth 0
}
canvas c0 {
name {Canvas0}
}
option show {
interface_names yes
ip_addresses yes
ipv6_addresses no
node_labels yes
link_labels yes
background_images no
annotations yes
hostsAutoAssign no
grid yes
iconSize normal
zoom 1.0
}